aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Database connections in JNDI" Watch "Database connections in JNDI" New topic
Author

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???


SCJP, SCJD,SCWCD,SCDJWS,SCEA 5 MCP-C#, MCP-ASP.NET - http://www.khaledinho.com/
Life is the biggest school
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Database connections in JNDI