[jboss-dev-forums] [JBoss AS7 Development] - Re: can I avoid a service to block as7 startup ?
Jason Greene
do-not-reply at jboss.com
Tue Oct 11 10:50:32 EDT 2011
Jason Greene [http://community.jboss.org/people/jason.greene] created the discussion
"Re: can I avoid a service to block as7 startup ?"
To view the discussion, visit: http://community.jboss.org/message/631175#631175
--------------------------------------------------------------
Since MSC is a concurrent state machine it's thread pool is a critical resource that is intended to run only non-blocking (busy) tasks. Since there can be thousands of services, and MSC does not know the usage pattern of each service, it's not possible to have a single large generic thread pool for everything. For this reason services that need to execute blocking tasks must use async startup and pass those tasks to another thread pool.
See the Service javadoc for more info:
http://docs.jboss.org/jbossmsc/1.0.0.GA/api/org/jboss/msc/service/Service.html http://docs.jboss.org/jbossmsc/1.0.0.GA/api/org/jboss/msc/service/Service.html
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/631175#631175]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111011/08f767da/attachment.html
More information about the jboss-dev-forums
mailing list