This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB JDBC Connection  RSS feed

 
sushil patil
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am new to EJB.

I required help for Connecting to Database through EJB.

I know to create Entity Bean And Session Bean , but I want to develope the application which validate Login And Password from database.

I read from Mastering Enterprise JavaBeans(Third Edition) 8th Chapter(Writing Container-Managed Persistent Entity Bean)

I know to write <query></query> in Deployment Descriptor

I am using BEA WebLogic server 8.1 , When I build Project jar file automatically created in that WEB-INF folder contains ejb-jar.xml(Deployment Descriptor)

ejb-jar.xml is in jar so I can not modify that file to <query> tag
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just edit ejb-jar.xml file in the META-INF directory to insert the <query> elements. Then rebuild and redeploy.
 
sushil patil
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for Reply

But please send more details

I can't edit ejb-jar.xml file because it is in META-INF Folder and this folder is in jar file
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JAR file is output from the build process. You need to get the original source code onto your PC.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!