Dimitris, I appreciate your responses but you appear to be approaching all of my 
questions from the standpoint of a developer.  Development is one very small piece of 
the puzzle.  The much larger pieces are deployment and maintenance, specifically 
remote (via MBeans) deployment and maintenance.

The whole point in my enquiring about the paradigm whereby MBean attributes and 
operations interact with the service state is to determine how the MBeans contract is 
expressed and communicated.  You've essentially said:  you can code the service do 
what whatever you want via MBeans and some things are harder than others.  Fine but 
that's a development concern.  

Picture this:  you're an administrator or a remote client and you sit down in front of 
your management console in which there are dozens of services each with attributes and 
operations.  How do you know which bean uses which technique?  Which attributes can be 
called when the service is running?  Which can be called when the service is running 
and requires the service to be restarted?  Which have to have the service stopped and 
restarted?  How do I know if the service is stopped (yes, "StateString" identifies if 
the service is started, but how do I know if it's still running?)?

Is the contract expressed solely through the limited MBean method descriptions?  Are 
there known paradigms for throwing various exceptions based on state (say, by throwing 
IllegalStateException if an attribute can only be set if the service is stopped -- and 
I know that IllegalStateException can be thrown but I'm asking for the paradigm)?  

Now put all of this into perspective of my other question:  Restart a FAILED service? 
And your response:  by altering manually its deployment descriptor, saving, then the 
deployment scanner takes notice of this and re-deploys the MBean.  I'm betting on the 
fact that there is no effective way of communicating the contract so my next thought 
is:  so what happens when they get it wrong (i.e. a service fails).  You're telling me 
that my MBean administrators are dead in the water.

I hope that I'm better communicating my questions and concerns and I hope that I'm not 
causing friction in any way as it is not intended.



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

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


-------------------------------------------------------
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