Is there any way to deploy my JMX Beans in a WAR or EAR package? I have them in a SAR package and I'm facing some problems. In my project there is a singleton that must access database using a datasource connection (defined within a *-ds.xml file) and this datasource is being instantiated after my SAR package deployment.
I believe that by packaging in a WAR or EAR file, JBOSS will instantiate my datasources, and then the datasource required by my project, and projects will run without errors.
Let me know if it was clear. I'm using JBOSS 4.2.3 AS.