WebSphere Application Server Network Deployment, Version 6.0.x   Operating Systems: AIX, HP-UX, Linux, Solaris, Windows
             [TIP: Focusing the table of contents and search results]

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 tasks
Migrating V4.0.x administrative scripts to V6 wsadmin
Related information
Using command line tools
Reference topic    

Terms of Use | Feedback

Last updated: Mar 8, 2007 8:14:28 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, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)