C M P   2 . 0  
            
id
 
          
          
            
name
 
            
name
 
             
          
          
            
nickName
 
            
nick_name
 
            
VARCHAR
 
            
VARCHAR(64)
 
          
          
            
badness
 
            
badness
 
          
          
          
       
    
 
Listing 9 5, The jbosscmp jdbc.xml Entity Mapping 
In this case the DOCTYPE declaration is optional, but will reduce configuration errors. In 
addition, all of the elements are optional except for ejb name, which is used to match the 
configuration to an entity declared in the ejb jar.xml file. Unless noted otherwise, the default 
values come from the defaults section of the jbosscmp jdbc.xml file, which is discussed in 
Appendix B of the JBossCMP Documentation.  A detailed description of each entity element 
follows: 
Table 9 1, entity Tags 
Tag Name 
Description 
Required 
ejb name 
This is the name of the EJB to which this configuration 
Yes 
applies. This element must match the ejb name of an entity 
in the ejb jar.xml file. 
datasource 
This is the jndi name used to look up the datasource. All 
No, default is 
database connections used by an entity are obtained from the  java:/DefaultDS
datasource. Having different datasources for entities is not 
recommended, as it vastly constrains the domain over which 
finders and ejbSelects can query. 
85






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