[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: ProfileService shutdown and undeploy order
sacha.labourey@jboss.com
do-not-reply at jboss.com
Mon Jan 28 08:31:08 EST 2008
"bstansberry at jboss.com" wrote : The HAPartition bean is just doing this in stopService():
|
| ctx = new InitialContext();
| ctx.unbind(boundName);
|
| In startService() it's more complicated, but essentially creates a new default InitialContext and does a rebind. So, no accessing a different dependency in stopService().
|
| The bean has a depends on jboss:service=NamingService.
|
|
(
BTW, maybe we should have a notion of implicit services applied to multiple inner-services i.e. a wrapping tag applied to multiple inner-service definitions so that it would be possible to assign global "services" (or default services) en masse. Things like the naming service for example, while a singleton today, might not be a a singleton anymore tomorrow (if we want to make JBoss AS 5.x a "multi-tenant" implementation i.e. SaaS hosting infrastructure for example).
)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124048#4124048
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124048
More information about the jboss-dev-forums
mailing list