Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

CMP getConnetion

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a J2EE Project on the WebLogic 5.1 platform. I use the container managed persistence (CMP) and i want to connect each table in MySQL database to an entity bean.
In session beans i used to get the connection as follows:
getConnection("jdbc:mysql://localhost/BagCart, "nobody", "n0body843" )
Now in the case of CMP, how should mention the username and password, where should i specify it( Deployment descriptor or if so how to set it. Please any one help me.
Thanks in advance,
sharp shooter, and author
Posts: 1913
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've not used WebLogic 5.1 for a while (disclaimer!), but the username and password and usually associated with the datasource that you define within the weblogic console (or Then, in your CMP deployment descriptor, you just tell the app server which datasource should be used for the CMP bean.
We begin by testing your absorbancy by exposing you to this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic