This content has been marked as final.
Show 5 replies
-
1. Re: How to deploy MBean with a WAR?
jaikiran Mar 13, 2012 9:43 PM (in response to szhigunov)You can place the *-service.xml file definining the MBean, in the .war/META-INF/ folder.
-
2. Re: How to deploy MBean with a WAR?
szhigunov Mar 14, 2012 11:05 AM (in response to jaikiran)What about <module> entry from ear/META-INF/jboss-app.xml. Where would it go in case of WAR deployment (no EAR/META-INF directory)?
-
3. Re: How to deploy MBean with a WAR?
jaikiran Mar 14, 2012 12:25 PM (in response to szhigunov)You don't need that entry.
-
4. Re: How to deploy MBean with a WAR?
szhigunov Mar 14, 2012 7:00 PM (in response to jaikiran)It works fine if I put jboss-sevice.xml into war/META-INF: Mbean gets started. But if I rename jboss-sevice.xml to say mysrv-sevice.xml - it is ignored. Is it working as expected? Should I put all MBean definitions into jboss-sevice.xml?
The jboss-sevice.xml content:
<server>
<mbean name="wa:name=MySrv" code="wa.MySrv"/>
</server>
-
5. Re: How to deploy MBean with a WAR?
jaikiran Mar 14, 2012 10:37 PM (in response to szhigunov)Ah right! It has to be jboss-service.xml. We only look for this specific file.