
OSGI-INF.blueprint.servicemix-nmr-management.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.nmr.management Show documentation
Show all versions of org.apache.servicemix.nmr.management Show documentation
Apache ServiceMix NMR: JMX MBeans and helper classes
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0" xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"> <!-- MBeanServer --> <reference id="mbeanServer" interface="javax.management.MBeanServer" availability="mandatory"> <reference-listener ref="managementStrategy" bind-method="bindMBeanServer" unbind-method="unbindMBeanServer"/> </reference> <bean id="namingStrategy" class="org.apache.servicemix.nmr.management.DefaultNamingStrategy"> <property name="jmxDomainName" value="org.apache.servicemix" /> </bean> <!-- ManagementStrategy --> <bean id="managementStrategy" class="org.apache.servicemix.nmr.management.ManagementAgent" depends-on="mbeanServer"> <property name="bundleContext" ref="blueprintBundleContext"/> <property name="enabled" value="${enabled}"/> <property name="namingStrategy" ref="namingStrategy" /> </bean> <!-- Service registration for the management strategy is done in ManagementAgent.init() so that is can be made optional depending on the value returned by isEnabled(). This means that we must get a separate reference to the management strategy so it can be injected into the management endpoint registry. <reference id="managementStrategyRef" interface="org.fusesource.commons.management.ManagementStrategy" availability="optional"> <reference-listener ref="endpointRegistry" bind-method="bindManagementStrategy" unbind-method="unbindManagementStrategy"/> </reference> --> <!-- Endpoint registry --> <bean id="endpointRegistry" class="org.apache.servicemix.nmr.management.ManagementEndpointRegistry" init-method="init" destroy-method="destroy"> <property name="bundleContext" ref="blueprintBundleContext"/> </bean> <!-- List of endpoints <reference-list id="endpoints" interface="org.apache.servicemix.nmr.api.internal.InternalEndpoint" availability="optional"> <reference-listener ref="endpointRegistry" bind-method="register" unbind-method="unregister" /> </reference-list> --> <!-- Exchange listener --> <service ref="endpointRegistry"> <interfaces> <value>org.apache.servicemix.nmr.api.event.ExchangeListener</value> <value>org.apache.servicemix.nmr.api.event.Listener</value> </interfaces> </service> <!-- Property place holder --> <cm:property-placeholder persistent-id="org.apache.servicemix.nmr.management"> <cm:default-properties> <!-- This property should be overridden to false if plugging in an alternative ManagementStrategy implementation from another bundle --> <cm:property name="enabled" value="true"/> </cm:default-properties> </cm:property-placeholder> </blueprint>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy