This tutorial explains the steps required to use the DataDirect Connect for JDBC™ drivers with the Sun Java System Application Server1, which include:
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:
Connect any data source to any application
Discussions, tips and tricks for
DataDirect Connect drivers
Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, 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.