We would need to configure some EJB configuration files to use a JBoss application server data source in an EJB. The standardjaws.xml
configuration file represents the JBossCMP engine. It contains the JNDI name of the default data source, jdbc-sql mappings, and CMP entity bean settings. Instead use the jaws.xml
file to use a custom configuration for mapping Container-Managed-Persistence (CMP) entity EJBs. In both cases, the file is copied to the META-INF
directory of the EJB .jar
file. The standardjaws.xml
and jaws.xml
configuration files do the following:
1. Specify a data source and a type mapping for the data source
2. Specify how tables are built or used
3. Define finder methods to access the entity beans
4. Define type mappings
A data source is a Java Naming and Directory Interface (JNDI) object used to obtain a connection from a connection pool to a database. Hypersonic Database is the default data source configured with JBoss 4.0. You need to modify...