[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: OnDemand as an aspect
charles.crouch@jboss.com
do-not-reply at jboss.com
Tue May 5 12:52:49 EDT 2009
"david.lloyd at jboss.com" wrote : What's the use case? My impression was that last time the topic of on-demand beans came up, we didn't want to use them this way because it would cause e.g. the first request which uses the bean to do all the dirty work, which isn't useful for most cases (it only provides the illusion of a quick startup).
We had/have exactly this use case with the Embedded Console in JBAS5.1.CR1. In order to start the Embedded Console you need to, amongst other things, initialize Seam and have it scan the console .war, and then run a scan of the JBAS instance looking for whats deployed. Right now those two things are taking around 20seconds to execute iirc. There is certainly some optimization that could be done here, but we're never going to get those things down to say 1second. Therefore it makes sense on app server startup not to penalize people who aren't going to use the console with the time costs of starting it up. So given this on-demand deployment isnt supported right now we hacked around it with a web filter and listener that delayed the Seam bootstrap and scanning until the first request to a page. If we had the ability to mark the deployment as on-demand we wouldn't have needed to do this.
Cheers
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228718#4228718
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228718
More information about the jboss-dev-forums
mailing list