-
1. JBoss shutdown is slow
wdfink Mar 23, 2011 5:35 AM (in response to sergiu_pienar)Is the MDB and the EJB component of the same EAR file?
-
-
3. JBoss shutdown is slow
wdfink Mar 23, 2011 5:49 AM (in response to sergiu_pienar)Is it EJB3? Do you use @EJB to reference the session bean?
I don't know other way to declare dependency, maybe the deployment descriptor (but not a intuitive one).
IMHO the container should be responsible for this, if there is no way it will be a reason to raise a JIRA bug
-
4. JBoss shutdown is slow
sergiu_pienar Mar 23, 2011 10:17 AM (in response to wdfink)It's EJB3.
The thing is ... I would be interested in knowing if there's some mechanism that would allow us to specify the order in which components are stopped.
Is there any such mechanism to your knowledge ?
Thank you.
-
5. JBoss shutdown is slow
jaikiran Mar 23, 2011 11:25 AM (in response to sergiu_pienar)1 of 1 people found this helpfulIf you are looking up a EJB from the MDB, then the container can't implicitly add the dependency. If you however, use a @EJB it will add the necessary dependencies for you.
If you still want to manually do the lookup and still get the dependencies right, then you will have to manually setup the dependencies via the jboss.xml file. Add a <depends> element in the jboss.xml for the MDB pointing to the MBean of the EJB that it depends on.
-
6. JBoss shutdown is slow
sergiu_pienar Mar 23, 2011 11:37 AM (in response to jaikiran)Will try that Jaikiran.
Thank you.
-
7. JBoss shutdown is slow
sergiu_pienar Mar 31, 2011 9:30 AM (in response to sergiu_pienar)Fixed by using mbean's to stop the MDB on server shutdown notification.