-
-
2. Re: MBeans in 3.02
aweissman Sep 10, 2002 4:14 PM (in response to aweissman)ok thanks that makes sense. i've also added my mbean entry to the bottom of the jboss-service.xml. i'm now getting several exceptions.
i think what is happening is that it parses mbean entry before it has loaded the .jar that contains my mbeans (I get a deploymentException and it says that my service is not registered). I am pretty sure that I have configured my mbean correctly because if I force jboss to reload its configuration (by saving jboss-service.xml while jboss is running) my mbean executes correctly.
any ideas?
Thanks!
Alan -
3. Re: MBeans in 3.02
sgturner Sep 10, 2002 4:31 PM (in response to aweissman)Your intuition is correct. Two ways to solve problem:
1. add a depends attribute in the xml file.
2. create a .sar file containing just your jar file and deployment descriptor.
For both, see QuickStartGuide for info. See JBoss newsletters on my site for example code and sar files. Or unzip any of the existing .sar files in deploy directory to see layout of file. -
4. Re: MBeans in 3.02
aweissman Sep 10, 2002 4:57 PM (in response to aweissman)thanks so much sgturner. i got through and discovered the quickstart guide also! whats your site url?
peace
al -
5. Re: MBeans in 3.02
sgturner Sep 10, 2002 5:04 PM (in response to aweissman)click on my user name to left of this message
-
6. Re: MBeans in 3.02
cepage Sep 10, 2002 6:30 PM (in response to aweissman)In my opinion, it is easier just to use the PrefixNumberDeploymentSorter that is available in 3.0.2.
Uncomment the appropriate part of your ${server}/conf/jboss-service.xml file to enable the PrefixNumberDeploymentSorter.
Then just rename your files. For example, 10-myMBean.jar and 20-myService.xml. JBoss will now deploy your files in the correct order.