• Post Reply Bookmark Topic Watch Topic
  • New Topic

entity bean query  RSS feed

 
rajeshindia kanna
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
i do have some problems in deployment of entity bean.these are the problem that i have faced .plz help me to rectify those.
step 1.i combined all the class files ,meta-inf files and made to a jar file.
step 2.then i used my weblogic.ejbc and generated a new jar file.
step 3.i opened my console and set my pool,datasource
step 4.i deployed my ejb.
step 5.i got the following errors.
weblogic.ejb20.WLDeploymentException:The datasource with the jndi name PoolConn could not be located.plz ensure that datasource has been deployed successfully.
i got an information if i give the datasource name instead of pool name we get this error.i checked i have given my pool name only.
could any one rectify my error.
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
First create a Pool and then a Datasource and associate the pool to this Datasource giving a jndi name to this DataSource.
CMP Entity bean
===============
State the JNDI name of the Datasource in the weblogic-cmp-rdbms-jar.xml along with table name
weblogic-cmp-rdbms-jar.xml
--------------------------
<data-source-name>oratxsource</data-source-name>
<table-map>
<table-name>SalaryAccounts</table-name>
Now create ur jar file using the weblogic.ejbc command and then deploy the same using ur Admin console.
This is the correct way of deploying a bean on Weblogic 6.1/7.0/8.1
Seetesh
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The DataSource must be a Tx Data Source and not DataSource for a CMP Entity Bean.
For a BMP Entity Bean, the Data Source and not Tx DataSource must be configured in both your ejb-jar.xml and weblogic-ejb-jar.xml files.
For more details send me a mail to seetesh_h@sify.com so that I can send u a snapshot of the configuration of both Tx DataSource for CMP EB and DataSource for BMP EB.
Seetesh
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!