How to create a V4.0 datasource in V5.0 and V6.0 using JMX
 Technote (troubleshooting)
 
Problem(Abstract)
The Information Center topic: Creating and configuring a JDBC provider and data source using the Java™ Management Extensions API at following URL is not clear about creating V4.0 datasource.
 
Resolving the problem
View this article: Creating and configuring a JDBC provider and data source using the Java™ Management Extensions API

JMX client Java code

Example of creating IBM® WebSphere® Application Server V4.0 datasource:
ObjectName dataSource =
targetConfigService.createConfigData(targetSession, jdbcProv, "WAS40DataSource", "resources.jdbc:DataSource", dsAttrs);

Example of creating WebSphere Application Server V5.0/V6.0 datasource
ObjectName dataSource =
targetConfigService.createConfigData(targetSession, jdbcProv, "DataSource", "resources.jdbc:DataSource", dsAttrs);

Using "WAS40DataSource" as the third parameter in the object type will create a WebSphere Application Server V4.0 datasource.

Using "DataSource" as the third parameter in the object type will create a WebSphere Application Server V5.0/V6.0 datasource.

NOTE: Since V4.0 datasources don't use the same attributes as the V5.0/V6.0 version you will need to pass different attributes in the dsAttrs parameter.

 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Java Management Extensions (JMX) or JMX client API
Operating system(s): Windows
Software version: 6.0
Software edition:
Reference #: 1224662
IBM Group: Software Group
Modified date: Dec 5, 2005