[jboss-dev-forums] [Design of POJO Server] - JBAS-1841 - ServiceController/Microcontainer integration
adrian@jboss.org
do-not-reply at jboss.com
Thu Aug 3 12:44:31 EDT 2006
I've committed the initial work for this into jboss-head.
This basically reproduces what the ServiceController did before
except with the Microcontainer model underneath.
There are two main differences with how it worked before,
neither should affect working implementations. These are
mainly about the Microcontainer's controller being more consistent
with states.
1) When an error occurs, the MBean is returned to the NOT_INSTALLED
state. In the old service controller, nothing much was done to rollback
the state, it was just marked at FAILED. What did occur happened at
remove(). Where it would invoke destroy() and unregisterMBean()
regardless of what state it reached prior to failure.
If you MBean implemented ServiceMBeanSupport you wouldn't
notice this, since its internal lifecycle would ignore any spurious
destroy() request.
2) The other main difference is that errors during "Instantiation"
(i.e. mbean registration) still allow the MBean to remain under
the controller's control and thus appear in the summary of errors
of the "IncompleteDeploymentException".
In the old service controller, the instantiation was done during the
parsing of the xml which meant the context was lost if it errored.
In the new controller, only xml parsing errors or attempts to
register duplicate MBeans will lead to the context being unknown
for error summary.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962925#3962925
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962925
More information about the jboss-dev-forums
mailing list