This content has been marked as final.
Show 3 replies
-
1. Re: *-service.xml files not being loaded when inside ear
gmccreath Apr 21, 2004 6:23 AM (in response to gmccreath)Oh, I forgot to add, the ear is an expanded dir structure, not a single ear file.
-
2. Re: *-service.xml files not being loaded when inside ear
gmccreath Apr 21, 2004 9:48 AM (in response to gmccreath)I've figured it ...
For public info:
It looks like *-service.xml files are not supported in ear files. The MBean services must be a sar with a corresponding entry in the jboss-app.xml file.
The sar can be a directory structure, but must have a META-INF dir with a jboss-service.xml file.
These needs to be done for even those services that have no additional classes. Effectively the sar will be empty apart from the META-INF/jboss-service.xml file.
myApp.ear
|_META-INF
| |_MANIFEST.MF
| |_application.xml
| |_jboss-app.xml
|_myService.sar
|_META-INF
|_MANIFEST.MF
|_jboss-service.xml
The jboss-app.xml file is:<jboss-app> <module> <service>myService.sar</service> </module> </jboss-app>
-
3. Re: *-service.xml files not being loaded when inside ear
essington Apr 21, 2004 1:00 PM (in response to gmccreath)These are all legal to do in the jboss-app.xml as well
<jboss-app> <module> <service>some-service.xml</service> </module> <module> <service>some-ds.xml</service> </module> <module> <service>some-service.bsh</service> </module> </jboss-app>
the -service files belong at the root level of the ear.