You can use the Jython or Jacl scripting languages to configure resource providers with the wsadmin tool. The commands and parameters in the ResourceManagement group can be used to define and display properties for resource providers.
Use the setResourceProperty command to set the value of a specified property defined on a resource provider such as JDBCProvider or a connection factory such as DataSource or JMSConnectionFactory. If the property with specified key is defined already, then this command overrides the value. If no property with a specified key is defined, this command will add the property with specified key and value.
Target object
The configuration object ID of a resource provider or a connection factory.Required parameters
Optional parameters
Sample output
The command does not return output.Examples
Batch mode example usage:
$AdminTask setResourceProperty {-propertyName test.property -propertyValue testValue}
AdminTask.setResourceProperty('[-propertyName test.property -propertyValue testValue]')
AdminTask.setResourceProperty(['-propertyName', 'test.property', '-propertyValue', 'testValue'])
Interactive mode example usage:
$AdminTask setResourceProperty {-interactive}
AdminTask.setResourceProperty ('[-interactive]')
AdminTask.setResourceProperty (['-interactive'])
Use the showResourceProperties command to list all of the property values that are defined on a resource provider such as JDBC provider or a connection factory such as data source or JMS connection factory.
Target object
The configuration object ID of a resource provider or a connection factory.Required parameters
None.Optional parameters
Sample output
The command returns the property values that are defined on the resource provider or the connection factory that you specified.Examples
Batch mode example usage:
$AdminTask showResourceProperties {-propertyName test.property}
print AdminTask.showResourceProperties('[-propertyName test.property]')
print AdminTask.showResourceProperties(['-propertyName', 'test.property'])
Interactive mode example usage:
$AdminTask showResourceProperties {-interactive}
print AdminTask.showResourceProperties('[-interactive]')
print AdminTask.showResourceProperties(['-interactive'])