WAS v8.5 > Reference > Jython script library

J2C query scripts

The scripting library provides many script procedures to manage your Java 2 Connector (J2C) configurations. This topic provides usage information for scripts that query your J2C configuration. We can run each script individually or combine many procedures to create custom automation scripts for the environment.

Each J2C management script procedure is located in the app_server_root/scriptLibraries/resources/J2C directory.

Use the following script procedures to query your J2C configurations:


listAdminObjectInterfaces

This script returns and displays a list of the administrative object interfaces for the J2C resource adapter of interest.

To run the script, specify the J2C resource adapter argument, as defined in the following table:

listAdminObjectInterfaces script. Run the script to list administrative object interfaces.

Argument Description
resourceAdapterID Configuration ID of the resource adapter of interest.

Syntax

Example usage


listConnectionFactoryInterfaces

This script returns and displays a list of the connection factory interfaces for the J2C resource adapter of interest.

To run the script, specify the J2C resource adapter argument, as defined in the following table:

listConnectioinFactoryInterfaces script. Run the script to list connection factory interfaces.

Argument Description
resourceAdapterID Configuration ID of the resource adapter of interest.

Syntax

Example usage


listJ2CActivationSpecs

This script returns and displays a list of the J2C activation specifications in your J2C configuration.

To run the script, specify the J2C resource adapter and message listener type arguments, as defined in the following table:

listJ2CActivationSpecs script. Run the script to list activation specification interfaces.

Argument Description
resourceAdapterID Configuration ID of the resource adapter of interest.
messageListenerType Message listener type.

Syntax

Example usage

AdminJ2C.listJ2CActivationSpecs("J2CTest(cells/myCell/nodes/myNode|resources.xml#J2CResourceAdapter_1184091767578)", 
  "javax.jms.MessageListener2")


listJ2CAdminObjects

This script returns and displays a list of the administrative objects in your J2C configuration.

To run the script, specify the application name and server name arguments, as defined in the following table:

listJ2CAdminObjects script. Run the script to list administrative object interfaces in a J2C configuration.

Argument Description
resourceAdapterID Name of the application of interest.
adminObjectInterface Name of the administrative object interface of interest.

Syntax

Example usage

AdminJ2C.listJ2CAdminObjects("J2CTest(cells/myCell/nodes/myNode|resources.xml#J2CResourceAdapter_1184091767578)", 
  "fvt.adapter.message.FVTMessageProvider2")


listJ2CConnectionFactories

This script returns and displays a list of the J2C connection factories in your J2C configuration.

To run the script, specify the J2C resource adapter and connection factory interface arguments, as defined in the following table:

listJ2CConnectionFactories script. Run the script to list J2C connection factories.

Argument Description
resourceAdapterID Configuration ID of the resource adapter of interest.
connFactoryInterface Name of the connection factory interface of interest.

Syntax

Example usage

AdminJ2C.listJ2CConnectionFactories("J2CTest(cells/myCell/nodes/myNode|resources.xml#J2CResourceAdapter_1184091767578)", 
  "javax.sql.DataSource2")


listJ2CResourceAdapters

This script displays a list of the J2C resource adapters in your configuration. The script returns either a list of J2CResourceAdapters with the resource adapter name or a list of all J2C resource adapters in the environment.

To run the script, we can optionally specify the J2C resource adapter argument, as defined in the following table:

listJ2CResourceAdapters script. Run the script to list J2C resource adapters.

Argument Description
resourceAdapterName Name of the resource adapter to display.

Syntax

Example usage


listMessageListenerTypes

This script returns and displays a list of the message listener types for the J2C resource adapter of interest.

To run the script, specify the J2C resource adapter argument, as defined in the following table:

listMessageListenerTypes script. Run the script to list message listener types.

Argument Description
resourceAdapterID Configuration ID of the resource adapter of interest.

Syntax

Example usage


Related


Use the script library to automate the application serving environment using wsadmin.sh


Reference:

J2C configuration scripts
JMS configuration scripts
JMS query scripts
JDBC configuration scripts
JDBC query scripts


+

Search Tips   |   Advanced Search