M B E A N   C O N F I G U R A T I O N   A N D   D E P E N D E N C Y   M A N A G E M E N T   P A G E   1 0 7  
    
Depends attributes, which do not need to correspond to an mbean attribute.  If it 
corresponds to an mbean attribute, that attribute type must be ObjectName and the 
name must be specified with optional attribute name.  For convenience you may 
specify an ObjectName or include the complete mbean configuration as a nested 
element. 
    
Depends list attributes, which contain a list of ObjectNames or mbeans: 
optional attribute name="blah" 
element>jboss.jca:service=something. Again, 
you can supply either an ObjectName or a complete mbean configuration.  The mbean 
attribute type should be "List". 
Service Lifecycle. 
Generally mbeans should implement org.jboss.system.Service or extend 
org.jboss.system.ServiceMBeanSupport to participate in the JBoss lifecycle management.  
This consists of 6 steps: 
20. 
Object creation and configuration. Using the xml file format just discussed, the 
mbean is instantiated on the mbean server and configured with the specified 
attribute values.  It is not yet ready for use. 
21. 
Create step: JBoss calls the create method (filtered to createService in 
ServiceMBeanSupport).  In this step, your mbean should set up its internal 
configuration to expose some representation of everything it will make available. 
However, it should not refer to or use anything outside itself (such as mbeans 
specified in depends elements or jndiname references). 
22. 
Start step.  Here your mbean can look into the outside world and use services of 
mbeans it has references to.  After this step, the mbean is ready for use. 
23. 
Stop step.  This should be the reverse of the start step.  It should not have state 
information imported from other mbeans after this step. The mbean is no longer 
usable. 
24. 
Destroy step. This should reverse the Create step. 
25. 
Unregister. The mbean is removed from the mbean server. 
107






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

best web hosting

 

Our partners: PHP: Hypertext Preprocessor Cheap Web Hosting JSP Web Hosting Ontario Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Java Hosting Cheapest Hosting

Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved