• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB JDBC Connection

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic