+

Search Tips   |   Advanced Search

ResourceManagement (AdminTask)

ResourceManagement commands can be used to define and display properties for resource providers.

The ResourceManagement (AdminTask) includes the following commands:


setResourceProperty

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

-propertyName

Name of the property. (String, required)

-propertyValue

Value of a property. (String, required)

Optional parameters

-propertyType

Type of the property. The default value is java.lang.String. (String, optional)

-propertyDescription

Description of the defined property. (String, optional)

Sample output The command does not return output.

Examples

Batch mode example:

Interactive mode:


showResourceProperties

Use the showResourceProperties command to list all of the property values 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

-propertyName

Name of the property. If we specify the property name, the value of the specified property name is returned. If we do not specify the property name, all property values will be listed. Each element in the list is a property name value pair. (String, optional)

Sample output The command returns the property values defined on the resource provider or the connection factory that specified.

Examples

Batch mode example:

Interactive mode:


Related tasks

  • Use the wsadmin scripting AdminTask object for scripted administration

  • Commands (AdminTask)