Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Deploy DataSource in Entity Bean  RSS feed

 
varun bihani
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JBuilder9.1.
I am not able to deploy my Entity Bean(CM).
Error I get:
Unable to deploy EJB: EMPLOYEE from pbModule.jar:
[EJB:011028]The DataSource with the JNDI name: employee could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
I dont understand how do I deploy DataSource.
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
U havent mentioned what ur app server is!!!
1. First create a connection pool for whatever database installed on ur comp. Assign a PoolName to the same
2. Create a datasource and attach the connection pool to the same.
3. Assign a JNDIName to the DataSource.
Use this JNDIName assigned to the DataSource in the xml files.
Seetesh
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!