Setting Up a JDBC Resource on the Sun Java System Web Server
See Also
A JDBC resource (data source) provides applications with a means of connecting to a database. Typically, there is at least one JDBC resource for each database accessed by an application deployed in a domain. It is possible to have more than one JDBC resource for a database.
To create a JDBC resource:
- Ensure the Sun Java System Web Server is running.
- In the Projects window, select your project's root node to make it the active node and choose File > New File (Ctrl-N).
- In the Categories list, select Sun Web Server 7.0 Resources, in the File Types list, select JDBC Resource, then click Next.
- In the General Attributes page, in the General area, do the following:
- (required) Enter a unique JNDI name for the resource.
- When you register the resource with the server, if a resource already exists with the name you enter here, the existing resource will be updated with the attributes and properties of the resource you are registering.
- Enable or disable the resource by choosing True or False.
- From the Database Vendor drop-down list, select the database vendor and driver for the resource.
When you select a value from this drop-down list, the IDE fills in the next field, Data Source Class Name.
- Accept the value in the Data Source Class Name field or make changes to match your implementation.
- Enter a description.
- In the General Attributes page, in the Database Connection Settings area, make changes to suit your preferences.
- Click Next.
- In the Additional Properties page, enter any properties for the resource.
- Click Finish.
- Register the resource with the Sun Java System Web Server.
- See Also
- Connecting to a Database
Copyright © 2006 Sun Microsystems, Inc. All rights reserved.
Legal Notices