[jboss-user] [Management, JMX/JBoss] - Two MBeans on the same JAR

ubersoldat do-not-reply at jboss.com
Fri Dec 12 07:29:17 EST 2008


Hi!

This works on Jboss4.0.5 but now I'm moving to Jboss-5.0.0.GA and I'm not able to make it work.

I have an abstract class with some common methods for two MBeans. Something like:

  | server (abstract)
  |  +-MBean1
  |  |       |-MBean1Management (I)
  |  |       |-MBean1Local (I)
  |  |
  |  +-MBean2
  |  |       |-MBean2Management (I)
  |  |       |-MBean2Local (I)
  | 

With Jboss-4.0.5.GA my jboss-service.xml looks like this:

  | <server> 
  |  <mbean code="org.test.Server" name="org.test:service=Server" >
  |  </mbean>
  | </server>
  | 
And both MBeans are deployed, but on Jboss5 neither that or the following works:

  | <server> 
  |  <mbean code="org.test.MBean1" name="org.test:service=MBean1" >
  |  </mbean>
  |  <mbean code="org.test.MBean2" name="org.test:service=MBean2" >
  |  </mbean>
  | </server>
  | 

And I get this errors

anonymous wrote : 
  | jboss.j2ee:jar=server.jar,name=MBean1,service=EJB3 -> java.lang.NullPointerException
  | jboss.j2ee:jar=server.jar,name=MBean2,service=EJB3 -> java.lang.NullPointerException
  | 

Thanks for any help.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196216#4196216

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196216



More information about the jboss-user mailing list