The default EJB configuration script defines top-level Ant
properties for settings that are most commonly configured. For example,
since all beans in a JAR file typically connect to the same database,
a sql.dataSource
property is
defined as follows:
<property name="sql.dataSource" value="default"/>
This property specifies the default for the data source name that is bound to any resource reference names used in the package. It also specifies the default data source used for field storage in CMP entity beans.
To override the Ant property values in the default configuration script, define the same property in your user-configuration script, above any target definitions.
In some cases, modifying the Ant property may not suffice because more than one value is required in the component configuration. For example, two enterprise beans in the module may connect to different data sources bound to JNDI name. In this case, you must override the default <bind> command in the module configuration by running a different <bind> command in the user-configuration script.
For an introduction to configuration with Ant, see Chapter 2, “Ant-Based Configuration,” in the Automated Configuration Guide. For details on the syntax of Ant commands, see the following file in your EAServer installation:
html\help\en\index.html