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&...]