I'm trying to make two MBeans deploy in the right order. But unfortunately not 
very succesful. This is with 3.2.6 and 3.2.7RC1.

I've tried the following things:

Put the two beans in one jboss-service.xml. The second bean defined is deployed 
first. Which is wrong.

Then I switched the beans around in the jboss-service.xml. Now the first one 
(the wrong one) is deployed.

Then I added depends tags to the beans like this:


  |   <mbean code="blah.jboss.SpringApplicationContext" 
name="blah:service=SpringApplicationContext">
  |   </mbean>
  | 
  |   <mbean code="blah.jboss.Foo" name="blah:service=Foo">
  |     <depends>blah:service=SpringApplicationContext</depends>
  |   </mbean>
  | 

Nothing changed in the deployment order. The Foo bean's startService() is still 
executed before SpringApplicationContext's startService().

Then I changed everything back and made two jboss-service.xml files and put 
those in the jboss-app.xml deployment descriptor in the right order. That did 
not work. The beans were still deployed in the wrong order.

At last I gave the two descriptors ascending named in the jboss-app.xml 
(aaa-jboss-service.xml and bbb-jboss-service.xml), this also did not change the 
deployment order.

I'm a bit confused now. What is the proper way to define the dependencies?

 S.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856958#3856958

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856958


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to