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:

  1. Ensure the Sun Java System Web Server is running.
  2. In the Projects window, select your project's root node to make it the active node and choose File > New File (Ctrl-N).
  3. In the Categories list, select Sun Web Server 7.0 Resources, in the File Types list, select JDBC Resource, then click Next.
  4. In the General Attributes page, in the General area, do the following:
    1. (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.
    2. Enable or disable the resource by choosing True or False.
    3. 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.
    4. Accept the value in the Data Source Class Name field or make changes to match your implementation.
    5. Enter a description.
  5. In the General Attributes page, in the Database Connection Settings area, make changes to suit your preferences.
  6. Click Next.
  7. In the Additional Properties page, enter any properties for the resource.
  8. Click Finish.
  9. 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