This tutorial explains the steps required to use the DataDirect Connect for JDBC™ drivers with the Sun Java System Application Server1, which include:
com.ddtek.jdbcx.db2.DB2DataSource
com.ddtek.jdbcx.informix.InformixDataSource
com.ddtek.jdbcx.oracle.OracleDataSource
com.ddtek.jdbcx.sqlserver.SQLServerDataSource
com.ddtek.jdbcx.sybase.SybaseDataSource
You must create a JSP page that uses the JDBC Resource you created in the previous step. A sample JSP page named JavaSystemASTest.jsp is provided in the JavaSystemASTest.war file, which is available from the same location you obtained this document. This JSP page includes the following code to look up the JDBC Resource and obtain a connection to the database from the data source returned from the lookup.
InitialContext ctxt = new InitialContext();
DataSource ds = (DataSource) ctxt.lookup("jdbc/TestDS");
con = ds.getConnection();
1 The steps in this paper were generated using the Sun Java System Application Server Platform Edition 8.1. The steps for other versions may differ.
Or, you may also be interested in learning about:
View all Tutorials
DataDirect Connectors
Contact Us
Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.