Hi, The org.apache.aries.jmx bundle provides an implementation of the OSGi JMX specification. This specification provides MBeans for interacting via JMX with an OSGi framework. It doesn't provide a mechanism to register MBeans with an OSGi bundle. So it won't do what you want it to do.
The Apache Aries project does contain a project that does specify how to register MBeans. This is the jmx-whiteboard project. It allows you to register a service using the jmx.objectname property in the service registry. The MBean also needs to be either a DynamicMBean, or it needs to follow the StandardMBean conventions. Alasdair On 18 September 2011 23:54, Matt Madhavan <mattmadha...@gmail.com> wrote: > Hello, > I'm running my application in Karaf container and I see that the following > two bundles are active: > > 1. org.apache.aries.jmx.blueprint > 2. org.apache.aries.jmx > > I have my blueprint.xml as follows: > > <reference id="persistenceService" > interface="itso.bank.api.persistence.PersistenceService"> > </reference> > <bean id="itsoBankBean" class="itso.bank.biz.ITSOBank"> > <property name="persistenceService" ref="persistenceService"/> > <bptx:transaction value="Required" method="*" /> > </bean> > <service id="ItsoBankBeanService" interface="itso.bank.api.Bank" > ref="itsoBankBean"> > <service-properties> > <entry key="osgi.jndi.service.name" value="biz/bankBizService"/> > *<entry key="jmx.objectname" value="domain:name=bankBizService" /> > * > </service-properties> > </service> > > I was expecting the JMX bundles are of type Extender Bundles. Like the > Aries JNDI extender bundle the Aries JMX extender bundle will automatically > instrument the itsoBankBean. > > Do I need to do additional work than this? > > Any help will be appreciated > > Thanks in advance! > > Matt > -- Alasdair Nottingham n...@apache.org -- Alasdair Nottingham n...@apache.org