Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes EJB and other Java EE Technologies and the fly likes How to set JDBC with J2EE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to set JDBC with J2EE "deploytool"" Watch "How to set JDBC with J2EE "deploytool"" New topic

How to set JDBC with J2EE "deploytool"

Pho Nguyen

Joined: Jul 26, 2002
Posts: 4
Hi All,
1. I am new with J2EE and I appreciate very much if being helped by experts/gurus :-)
2. How do I set database JNDI in the Deployment Settings/Database Settings of the J2EE's Deployment Tool "deploytool". In the Tutorial it shows to use Cloudscape and the value to enter is "jdbc/Cloudscape".
3. I want to use driver from WebLogic for SQLServer "jdbc:weblogic:mssqlserver4"
Thank you so much !
James Carman
Ranch Hand

Joined: Feb 20, 2001
Posts: 580
From the "Tools" menu, select "Server Configuration...".

James Carman, President<br />Carman Consulting, Inc.

Joined: Jul 29, 2002
Posts: 24
use the j2eeadmin tool provided in the J2ee RI.
1)for adding JDBC Driver j2eeadmin -addJdbcDriver <classname for the driver>
2)for adding DataSource j2eeadmin -addJdbcDatasource jndiname url
It is sorta covered in the JavaRanch Style Guide.
subject: How to set JDBC with J2EE "deploytool"