My view is the following:

MBeans by themselves is just another tool that can be used in many different ways. 
JBoss used it primarily as a component integration/configuration bus, with the added 
benefit that "some" management would be possible.

Since MBean services can be implemented in many different ways, JBoss used the lowest 
common denominator as its paradigm for managing the deployment of services, i.e.:

CTOR -> [attribute config] -> [create] -> [start] -> [stop] -> [destroy]

I am using brackets to indicate that those are actually optional steps, so create() 
will only be called if it is implemented.

(Note, actually this came before jsr77, and after the jmx spec itself, that did not 
specify at all a lifecycle for MBeans, except of the very basic/limited 
MBeanRegistration interface.)

JBoss only guarantees the correct sequence of lifecycle events, (for those MBean that 
extends JBoss classes, e.g. ServiceMBeanSupport, plus making sure that any specified 
dependencies will be satisfied.

It doesn't even say that you should be able to do: start->stop->start->stop

So a lot of services have been implemented by many different people and the only thing 
that we know for sure, is that the above lifecycle paradigm works for all services.

I'm not really aware of the reason the ServiceController will prevend failed services 
from being restarted, but following this logic it may be so that it "enforces" this 
simple paradigm which suggests that a failed service must be re-deployed.

Regarding the JSR77 lifecycle there is the following note in the jboss documentation:

"Note that there is a J2EE management specification request (JSR 77, 
http://jcp.org/jsr/detail/77.jsp) that introduces a state management notion that 
includes a start/stop lifecycle notion. When this standard is finalized JBoss will 
likely support an extension of the JSR 77 based service lifecycle implementation. As 
of the 3.2.0 release we do support JSR77 management objects and most of the 
statistics, but the lifecycle operations are not supported."

So the start/stop notion (including transitions from fail) still needs to be done.

Regards
/Dimitris

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845380#3845380

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845380


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to