WebSphere Application Server Network Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Example: Migrating - Installing a JDBC driver

You can install a Java Database Connector (JDBC) driver in WebSphere Application Server Network Deployment.

The following example demonstrates how to install a JDBC driver in WebSphere Application Server V5.x and V6.x using wsadmin V5.x and V6.x. Resources can exist at the server, node, or cell level of the configuration.

Using Jacl:
set node [$AdminConfig getid /Node:mynode/]
$AdminConfig create JDBCProvider $node {{classpath c:/SQLLIB/java/db2java.zip} {implementationClassName COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource} {name mydriver}}
$AdminConfig save
Using Jython:
node = AdminConfig.getid('/Node:mynode/')
AdminConfig.create('JDBCProvider', node, [['classpath', 'c:/SQLLIB/java/db2java.zip'],  ['implementationClassName', 'COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource'], ['name', 'mydriver']])
AdminConfig.save()



Related information
Using command line tools

Reference topic    

Terms of Use | Feedback

Last updated: Dec 11, 2005 4:07:15 PM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rxml_mjdbc.html

© Copyright IBM Corporation 2002, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)