[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Concurrent deployments
adrian@jboss.org
do-not-reply at jboss.com
Wed Feb 13 08:21:47 EST 2008
A simple mechansim that I can think of would to have a new ControllerMode
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/trunk/jboss-dependency/src/main/org/jboss/dependency/spi/ControllerMode.java?revision=31727&view=markup&pathrev=31727
which you could add to your deployment.
| <deployment mode="asynchronous">
| <!-- beans here -->
| </deployment>
|
which would work like the "automatic" mode, except it submits the work
to a background thread pool.
In this scenario, it would largely be "self-optimizing" since
it would automatically advance related dependencies that are eligible once
these beans reach the relevant stages.
But this wouldn't work so well for the old JMX MBeans which are hardwired to
operate in "manual" mode driven by the "SARDeployer"/ServiceController
for backwards compatibilty reasons.
The Deployments (which are also managed for dependency by the MC)
also run in "manual" mode which might be a good thing
since it would still ensure that classloaders are constructed in a predictable order
on one thread.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129119#4129119
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129119
More information about the jboss-dev-forums
mailing list