Before an application that is installed on an application server can start, all enterprise bean (EJB) references and resource references defined in the application must be bound to the actual artifacts (enterprise beans or resources) defined in the application server.
Create a data source or JDBC resource and give it a Java Naming and Directory Interface (JNDI) name.
Why and when to perform this task
For more information, see Application bindings
The following steps assume that the entity beans in your application are container-managed persistence (CMP) enterprise beans. The EJB container handles the persistence of the bean attributes in the underlying persistent store. You must specify which data store is used. You do this by binding an EJB module or individual EJB to a data source.
If you bind an EJB module to a data source, all beans in that module use the same data source for persistence. If you specify the data source at the bean level, then that data source is used instead.
Related concepts
Application bindings
Related tasks
Binding EJB and resource references