I have some unusual requirement where I need a service to be initialized after the deployment of some session beans. I've written the service as a JMX bean and I'd like it to be triggered upon the deployment of the ear file containing my beans. I can manually get things to work by first deploying my .ear then copying the -service.xml to the deploy directory. Any way to package the -service.xml into my .ear to get this to work automatically?
I've tried putting it in the root of the .ear and also in META-INF but neither approach seems to work (i.e. nothing happens). I am using JBoss AS 4.0.4.