-
1. Re: bean undeployment in server (as5/jboss mc) shutdown
alesj Jan 20, 2009 11:07 AM (in response to emmartins)I very much doubt that's the case,
since that would mean MC doesn't work at the core - plain bean dependency order. :-)
Transitive dependencies should not break it.
What exactly does it mean "before the second one undeploy completes"? -
2. Re: bean undeployment in server (as5/jboss mc) shutdown
emmartins Jan 20, 2009 12:20 PM (in response to emmartins)The second is also an StandardMBean and the undeployment is the execution of stop(), which is invoked...
-
3. Re: bean undeployment in server (as5/jboss mc) shutdown
alesj Jan 21, 2009 7:09 AM (in response to emmartins)Here is a mock test, which of course works. ;-)
- http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/trunk/kernel/src/test/java/org/jboss/test/kernel/deployment/test/TransitiveBeansTestCase.java
- http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/trunk/kernel/src/test/resources/org/jboss/test/kernel/deployment/test/TransitiveBeansTestCase.xml
- http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/trunk/kernel/src/test/java/org/jboss/test/kernel/deployment/support/FirstBean.java -
4. Re: bean undeployment in server (as5/jboss mc) shutdown
alesj Jan 21, 2009 7:32 AM (in response to emmartins)"alesj" wrote:
What exactly does it mean "before the second one undeploy completes"?
I'm just asking since the dependent beans are not completely uninstalled.
They are just unwinded to a state just before the dependent state.
e.g. property injection happens at Configured
when uninstalling, removing that injection, the bean will be left in Configured-1 state = Instantiated -
5. Re: bean undeployment in server (as5/jboss mc) shutdown
emmartins Jan 21, 2009 8:27 AM (in response to emmartins)so when should this bean run the shutdown code currently in StandardMBean.stop() so the other it depends is still full functional? :)
-
6. Re: bean undeployment in server (as5/jboss mc) shutdown
alesj Jan 21, 2009 9:06 AM (in response to emmartins)"emmartins" wrote:
so when should this bean run the shutdown code currently in StandardMBean.stop() so the other it depends is still full functional? :)
I don't understand what you mean?
You're probably missin ',' before "in"?"emmartins" wrote:
so when should this bean run the shutdown code currently
Dunno, it's your service. ;-)
The lifecycle: instantiated - configured - create/destroy - start/stop
Injection --> configured"emmartins" wrote:
in StandardMBean.stop() so the other it depends is still full functional?
The order of undeploy is:
- undeploy my dependencies
- undeploy me
Hence the "the other it depends" should be still fully finctional (installed).
See AbstractController::uninstallContext.
And re-check the mock test, I did some small modifications. -
7. Re: bean undeployment in server (as5/jboss mc) shutdown
emmartins Jan 21, 2009 10:11 AM (in response to emmartins)My bad, I missed the async execution in another thread of part of the shutdown code, which means the undeployer thread was proceding with the server shutdown.
Thanks Ales :-)
-- Eduardo