[jboss-user] [JBoss Microcontainer] - When is a bean moved to START state?
Ales Justin
do-not-reply at jboss.com
Tue Mar 30 15:32:40 EDT 2010
Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion
"When is a bean moved to START state?"
To view the discussion, visit: http://community.jboss.org/message/534740#534740
--------------------------------------------------------------
> Does MC set the state to START even before the start() lifecycle successfully completes?
No, after -- see AbstractController::incrementState.
try
{
install(context, fromState, toState);
fromContexts.remove(context);
Controller toController = context.getController();
Set<ControllerContext> toContexts = toController.getContextsByState(toState);
toContexts.add(context);
context.setState(toState); // HERE
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/534740#534740]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100330/0b0174ec/attachment.html
More information about the jboss-user
mailing list