Win a copy of Murach's Python Programming this week in the Jython/Python 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!