This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
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

JDBC connection in BMP and session Bean  RSS feed

 
Gaurav Chikara
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one pls tell how to set the jdbc connection thru
BMP
by using properties
Is it also possible to get JDBC connection in session bean also
if yes then how
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Properties was the EJB 1.0 way to handle a jdbc
connection. In 1.1 and 2.0 you are supposed to get the jdbc datasource from the JNDI ENC.
See Sun's Pet Shop CatalogDAOImpl.java for complete code of JNDI ENC implementation.
Are you using a 1.0 container?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!