Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDI in EJB connecting to oracle

 
kevin chang
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am making my BMP reference to the book <Mastering EJB>, but i met a problem in JNDI connecting BMP with Oracle. Is it necessary to config weblogic, and how to do that? Is it correct to config that in ConnectionPool and DataSoure? making a Naming in BMP bean? and how should i name that ? should it be "java atasource" or something else? what else should i do? Can any one give me some suggestion?
 
vikasids sharma
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kevin
you need to create datasource(you would be looking up this datasource for getting benifit of implicit connection pooling in appserver).
you can either create it using websphere or weblogic console or by manualy coding(run time creation)before u look up this datasource.you can give any pseuodo name to this datasource.The key point is you will be using the same name to look up.
classes12.zip(Type 4 driver for oracle) in oracle provides class(ConnectionPoolDataSource.class) for using datasource . you need to provide this class in weblogic while creating datasource.

Originally posted by kevin chang:
hi all,
i am making my BMP reference to the book <Mastering EJB>, but i met a problem in JNDI connecting BMP with Oracle. Is it necessary to config weblogic, and how to do that? Is it correct to config that in ConnectionPool and DataSoure? making a Naming in BMP bean? and how should i name that ? should it be "java atasource" or something else? what else should i do? Can any one give me some suggestion?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic