Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop EJB applications > Develop entity beans


Define data sources for entity beans

An application that is installed on an application server must have bindings defined before you can start the application. The EJB references and resource references that are defined in the application must be bound to the actual enterprise beans or resources that are defined in the application server. Create a data source or JDBC resource and give it a JNDI name.

See the topic Application bindings.

Before you do this task, it is assumed that the entity beans in the application are container-managed persistence (CMP) enterprise beans.

The EJB container handles the persistence of the bean attributes in the underlying persistent store. Specify which data store is used 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.

See the assembly tool information center for the steps on how to complete this task.
Application bindings

+

Search Tips   |   Advanced Search