File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Database connections in JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Database connections in JNDI" Watch "Database connections in JNDI" New topic

Database connections in JNDI

Khaled Mahmoud
Ranch Hand

Joined: Jul 15, 2006
Posts: 361
I am using Netbeans 5.5 and Sun Application Server 9.0 with Java Enterprise Edition version 5.0.

I used the new classes from database wizard to generate persistent entities. Through the wizard I chose to connect to mysql database,
specifying the jar file that contains the driver needed to connect to mysql and also specifying the connection string. During the wizard I was asked to specify a JNDI name for the connection string so that it can be referenced by clients. My question is how the JNDI name i specify gets registered in the JNDI registry of the application server???

Life is the biggest school
I agree. Here's the link:
subject: Database connections in JNDI
It's not a secret anymore!