|
Problem(Abstract) |
A datasource withJNDI name ( jdbc/LOANDSN ) is created for
the Container Managed Persistence (CMP) beans, But the Use this
datasource for the container managed persistence option is not
checked.
Exception data follows:
NMSV0605W
javax.naming.NameNotFoundException: eis/jdbc/LOANDSN_CMP. Root exception
is org.omg.CosNaming.NamingContextPackage.NotFound
Click on the stack.txt link at the bottom of this technote to view the
full stack from the trace file. |
|
|
|
Cause |
One possible reason for this error is that the Use this
datasource for the container managed persistence option for the
datasource is not checked, so the connection factory that is used by a CMP
bean to access backend data store is not created in the JNDI name space.
This causes the IBM® WebSphere® Application Server Persistence Manager
that looks for the CMP Connection Factory with JNDI name
eis/jdbc/LOANDSN_CMP to fail with the NameNotFoundException. |
|
|
Resolving the
problem |
To fix this problem, use the datasource configuration to
check the Use this datasource for the container managed persistence
checkbox.

- To do this, navigate to the datasource configuration panel as follows:
Administrative Console > Resources > JDBC Providers > Select
your JDBC Provider > data source.
- Click on the datasource with JNDI name (jdbc/LOANDSN).
- Select Container Managed Persistence. Use this datasource for
container managed persistence as shown in the screenshot below. This will
create a CMP connection factory ( eis/jdbc/LOANDSN_CMP) which corresponds
to this datasource to be created for the RRA Automatically. This
connection factory is a read-only connection. It cannot be used to modify
or delete data records.
- To see the corresponding automatically-created RRA CMP Connection
Factory for the datasource you have created for the CMP Beans, select
Console > Resources > Resource Adapter > WebSphere Relational
Resource Adapter > CMP Connection Factories.
 |
|
|
|
|
Cross Reference information |
Segment |
Product |
Component |
Platform |
Version |
Edition |
Application Servers |
Runtimes for Java Technology |
Java SDK |
|
|
|
|
|
|