Chapter 2. Deployment Descriptors

Table of Contents
File Locations
Configuration Overview
Common Bean Configuration
Declaring EJB References
CMP Configuration
Declaring Finders
Message Driven Beans

This chapter describes the differences between the deployment descriptors and vendor specific configuration files of JBoss and JOnAS.

File Locations

In both JBoss and JOnAS, the deployment descriptors and vendor specific configuration files are located in the META-INF directory. Table 2-1 lists each JBoss file along with the JOnAS equivalent. Note that JBoss uses two vendor specific files, and JOnAS stores its equivalent configuration in a single file.

Table 2-1. Deployment Descriptors and Configuration Files

JBoss FileJOnAS EquivalentDescription
META-INF/ejb-jar.xmlMETA-INF/ejb-jar.xmlThis file contains the vendor neutral deployment descriptor. Any changes to this file will be minor.
META-INF/jboss.xmlMETA-INF/jonas-ejb-jar.xmlThis file contains the JBoss specific deployment descriptor. JOnAS has a comparable file although the format differs slightly, and it also contains the configuration for the CMP entity beans.
META-INF/jbosscmp-jdbc.xmlMETA-INF/jonas-ejb-jar.xmlThis file contains configuration for the JBoss CMP implementation. The contents of this file will need to be converted and merged into the jonas-ejb-jar.xml file.