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. You can run each script individually or combine many procedures to create custom automation scripts for your environment.
Each J2C management script procedure is located in the app_server_root/scriptLibraries/resources/J2C directory.
listAdminObjectInterfaces
This script returns and displays a list of the administrative object interfaces for the J2C resource adapter of interest.
Argument | Description |
---|---|
resourceAdapterID | Specifies the configuration ID of the resource adapter of interest. |
Syntax
AdminJ2C.listAdminObjectInterfaces(resourceAdapterID)
Example usage
AdminJ2C.listAdminObjectInterfaces("J2CTest(cells/myCell/nodes/myNode|resources.xml#J2CResourceAdapter_1184091767578)")
listConnectionFactoryInterfaces
This script returns and displays a list of the connection factory interfaces for the J2C resource adapter of interest.
Argument | Description |
---|---|
resourceAdapterID | Specifies the configuration ID of the resource adapter of interest. |
Syntax
AdminJ2C.listConnectionFactoryInterfaces(resourceAdapterID)
Example usage
AdminJ2C.listConnectionFactoryInterfaces("J2CTest(cells/myCell/nodes/myNode|resources.xml#J2CResourceAdapter_1184091767578)")
listJ2CActivationSpecs
This script returns and displays a list of the J2C activation specifications in your J2C configuration.
Argument | Description |
---|---|
resourceAdapterID | Specifies the configuration ID of the resource adapter of interest. |
messageListenerType | Specifies the message listener type. |
Syntax
AdminJ2C.listJ2CActivationSpecs(resourceAdapterID, messageListenerType)
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.
Argument | Description |
---|---|
resourceAdapterID | Specifies the name of the application of interest. |
adminObjectInterface | Specifies the name of the administrative object interface of interest. |
Syntax
AdminJ2C.listJ2CAdminObjects(resourceAdapterID, adminObjectInterface)
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.
Argument | Description |
---|---|
resourceAdapterID | Specifies the configuration ID of the resource adapter of interest. |
connFactoryInterface | Specifies the name of the connection factory interface of interest. |
Syntax
AdminJ2C.listJ2CConnectionFactories(resourceAdapterID, connFactoryInterface)
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.
Argument | Description |
---|---|
resourceAdapterName | Specifies the name of the resource adapter to display. |
Syntax
AdminJ2C.listJ2CResourceAdapters(resourceAdapterName)
Example usage
AdminJ2C.listJ2CResourceAdapters()
AdminJ2C.listJ2CResourceAdapters("myResourceAdapter")
listMessageListenerTypes
This script returns and displays a list of the message listener types for the J2C resource adapter of interest.
Argument | Description |
---|---|
resourceAdapterID | Specifies the configuration ID of the resource adapter of interest. |
Syntax
AdminJ2C.listMessageListenerTypes(resourceAdapterID)
Example usage
AdminJ2C.listMessageListenerTypes("J2CTest(cells/myCell/nodes/myNode|resources.xml#J2CResourceAdapter_1184091767578)")