This content has been marked as final.
Show 5 replies
-
1. Re: MBean inside an EAR without Annotations
jimmycallaghan Dec 9, 2008 11:40 AM (in response to jimmycallaghan)I've also tried:
ear
- META-INF
- lib
- - jar1.jar
- - jar2.jar
- - jar3.jar
- - - META-INF
- - - - my-xmbean.xml
- - - - jboss-service.xml
- - jar4.jar
...
But to no avail. -
2. Re: MBean inside an EAR without Annotations
jimmycallaghan Dec 9, 2008 12:15 PM (in response to jimmycallaghan)Got it:
ear
- META-INF
- lib
- - jar1.jar
- - jar2.jar
- - jar3.jar
- - jar4.jar
- - - META-INF
- - - classes
- - - jboss-service.xml
- - - my-xmbean.xml
Just put the xml config in the jar that contains the JMXBean. No need to play around with META-INF etc. -
3. Re: MBean inside an EAR without Annotations
rhodan76 Dec 10, 2008 2:07 AM (in response to jimmycallaghan)We used following instructions for jboss 4.2.x:
1. zip your mbean as an sar-archive
2. Create in your ear's META-INF an jboss-app.xml and register there your mbean.
<jboss-app>
your-mbean.sar
</jboss-app>
3. package ear, deploy -
4. Re: MBean inside an EAR without Annotations
rhodan76 Dec 10, 2008 2:08 AM (in response to jimmycallaghan)ooops - missed some lines - try this:
<jboss-app>
your-mbean.sar
</jboss-app> -
5. Re: MBean inside an EAR without Annotations
rhodan76 Dec 10, 2008 2:11 AM (in response to jimmycallaghan)ok, the forum is tricking me - next try:
<jboss-app> <module> <service>lims-license-service.sar</service> </module> </jboss-app>