I am playing around with org.apache.karaf.management.MBeanRegistrer but when
i deploy to karaf, i get an exception. Below is my code:
lt;reference id=quot;mbeanServerquot;
interface=quot;javax.management.MBeanServerquot;gt;
lt;reference-listener ref=quot;mbeanRegistrerquot;
Hi,
I guess that you use 2.3.x ?
You create a interface describing your MBean.
The impl class has to extend javax.management.StandardMBean and
implement your interface.
Once done, in blueprint, you should have:
bean id=myMBean class=.../
bean id=mbeanRegistrer
Hi JB,
Yes, i've done the same as you've described, but still doesn't work.
The code is @
https://github.com/garethahealy/jboss-fuse-examples/blob/master/mbeans-expose/src/main/resources/OSGI-INF/blueprint/mbeans-expose-context.xml
Also, yes, i know the newer way is with aries whiteboard, but
Hi JB,
I've got it working.
The thing that confused me was when i was looking at the source of
MBeanRegistrer, it had a registerMBeanServer method. Which was incorrect, as
i was looking at the wrong version of the source!
My version uses a ServiceTracker internally. That was the reason it kept
Hi,
Will it be possible to use Spring DM to scan the Spring 4 @Annotations
(used by a project to configure a DataSource by example :
http://stackoverflow.com/questions/7542506/spring-propertyplaceholderconfigurer-and-contextproperty-placeholder)
or another OSGI Service will be required to scan
Hi,
no, spring-dm doesn't support Spring 4 (as you can see in the features
version range).
You need to tweak using a OSGi service.
Regards
JB
On 12/18/2014 08:44 AM, Charles Moulliard wrote:
Hi,
Will it be possible to use Spring DM to scan the Spring 4 @Annotations
(used by a project to