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 6  
Chapter  
12 
12.  MBean Configuration and Dependency management 
How to deploy and configure your mbeans by David 
Jencks 
Almost everything important in JBoss is an mbean, such as ejbs, the naming service, 
resource adapters, etc. Most of these (except, as of now, ejbs) are configured through jboss 
specific xml deployment descriptors in * service.xml files.  These may be packed with the 
classes they need in a sar (service archive) or deployed separately.  We will cover the format 
of these configuration files, the structure of sar files, and the two types of dependency 
management: between mbeans, and between an mbean and its class.  We will also discuss 
the mbean lifecycle. 
Listing 10 12 1, * service.xml files look like this: 
 
 
  
     name="jboss.jca:service=XaTxCM,name=FirebirdDS"> 
    jboss.jca:service=RARDeployer 
     
      jboss.jca:service=XaTxDS,name=FirebirdDS 
     
    java:/jaas/FirebirdDBRealm 
    java:/TransactionManager 
   
 
There is one service element containing one or more mbean elements.  The mbean element 
must include the class name (code) and ObjectName (name) attributes.  ObjectNames must 
be unique server wide.  It is also possible to include constructor parameters for a non default 
constructor. 
There are three kinds of attributes allowed in mbeans;  
    
Normal "attribute" attributes, which can be any reasonable type or an xml Element. 
They must correspond to an mbean attribute. 
106






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