Sun Java System Web Server 7.0 Update 1 Administrator's Guide

Adding a JDBC Resource

For adding a JDBC resource through CLI, execute the following command.


wadm> create-jdbc-resource --user=admin --password-file=admin.pwd --host=serverhost
--port=8989 --config=config1 --datasource-class=oracle.jdbc.pool.OracleDataSource jdbc

See CLI Reference, create-jdbc-resource(1).

In the above example, com.pointbase.jdbc.jdbcDataSource represents the JDBC driver class.

For a list of supported JDBC drivers, see JDBC Drivers Known to Work With Sun Java System Web Server.