You can use the Jython or Jacl scripting languages to configure messaging with scripting. The commands and parameters in the JCA management group can be used to create and manage resource adapters, Java 2 Connectory (J2C) activation specifications, administrative objects, connection factories, administrative object interfaces, and message listener types. The JCAManagement command group for the AdminTask object includes the following commands:
Target object J2C Resource Adapter object ID
Parameters and return values
Examples
Batch mode example usage:
$AdminTask copyResourceAdapter $ra [subst {-name newRA -scope $scope}]
AdminTask.copyResourceAdapter(ra, '[-name newRA -scope scope]')
AdminTask.copyResourceAdapter(ra, ['-name', 'newRA', '-scope', 'scope'])
Interactive mode example usage:
$AdminTask copyResourceAdapter {-interactive}
AdminTask.copyResourceAdapter ('[-interactive]')
AdminTask.copyResourceAdapter (['-interactive'])
Target object J2C Resource Adapter object ID
Parameters and return values
Examples
Batch mode example usage:
$AdminTask createJ2CActivationSpec $ra {-name J2CActSpec -jndiName eis/ActSpec1 -messageListenerType javax.jms.MessageListener }
AdminTask.createJ2CActivationSpec(ra, '[-name J2CActSpec -jndiName eis/ActSpec1 -messageListenerType javax.jms.MessageListener]')
AdminTask.createJ2CActivationSpec(ra, ['-name', 'J2CActSpec', '-jndiName', 'eis/ActSpec1', '-messageListenerType', 'javax.jms.MessageListener'])
Interactive mode example usage:
$AdminTask createJ2CActivationSpec {-interactive}
AdminTask.createJ2CActivationSpec ('[-interactive]')
AdminTask.createJ2CActivationSpec (['-interactive'])
Use the createJ2CAdminObject command to create an administrative object under a resource adapter with attributes that you specify. Use the administrative object interface to indicate the administrative object that is defined in the resource adapter.
Target object J2C Resource Adapter object ID
Parameters and return values
Examples
Batch mode example usage:
$AdminTask createJ2CAdminObject $ra {-adminObjectInterface fvt.adapter.message.FVTMessageProvider -name J2CA01 -jndiName eis/J2CA01}
AdminTask.createJ2CAdminObject(ra, '[-adminObjectInterface fvt.adapter.message.FVTMessageProvider -name J2CA01 -jndiName eis/J2CA01]')
AdminTask.createJ2CAdminObject(ra, ['-adminObjectInterface', 'fvt.adapter.message.FVTMessageProvider', '-name', 'J2CA01', '-jndiName', 'eis/J2CA01'])
Interactive mode example usage:
$AdminTask createJ2CAdminObject {-interactive}
AdminTask.createJ2CAdminObject ('[-interactive]')
AdminTask.createJ2CAdminObject (['-interactive'])
Use the createJ2CConnectionFactory command to create a Java 2 connection factory under a Java 2 resource adapter and the attributes that you specify. Use the connection factory interfaces to indicate the connection definitions that are defined for the Java 2 resource adapter.
Target object J2C Resource Adapter object ID
Parameters and return values
Examples
Batch mode example usage:
$AdminTask createJ2CConnectionFactory $ra {-connectionFactoryInterfaces javax.sql.DataSource -name J2CCF1 -jndiName eis/J2CCF1}
AdminTask.createJ2CConnectionFactory(ra, '[-connectionFactoryInterfaces javax.sql.DataSource -name J2CCF1 -jndiName eis/J2CCF1]')
AdminTask.createJ2CConnectionFactory(ra, ['-connectionFactoryInterfaces', 'javax.sql.DataSource', '-name', 'J2CCF1', '-jndiName', 'eis/J2CCF1'])
Interactive mode example usage:
$AdminTask createJ2CConnectionFactory {-interactive}
AdminTask.createJ2CConnectionFactory ('[-interactive]')
AdminTask.createJ2CConnectionFactory (['-interactive'])
Use the listAdminObjectInterfaces command to list the administrative object interfaces that are defined under the resource adapter that you specify.
Target object J2C Resource Adapter object ID
Parameters and return values
Examples
Batch mode example usage:
$AdminTask listAdminObjectInterfaces $ra
AdminTask.listAdminObjectInterfaces(ra)
AdminTask.listAdminObjectInterfaces(ra)
Interactive mode example usage:
$AdminTask listAdminObjectInterfaces {-interactive}
AdminTask.listAdminObjectInterfaces ('[-interactive]')
AdminTask.listAdminObjectInterfaces (['-interactive'])
Use the listConnectionFactoryInterfaces command to list all of the connection factory interfaces that are defined under the Java 2 connector resource adapter that you specify.
Target object J2C Resource Adapter object ID
Parameters and return values
Examples
Batch mode example usage:
$AdminTask listConnectionFactoryInterfaces $ra
AdminTask.listConnectionFactoryInterfaces(ra)
AdminTask.listConnectionFactoryInterfaces(ra)
Interactive mode example usage:
$AdminTask listConnectionFactoryInterfaces {-interactive}
AdminTask.listConnectionFactoryInterfaces ('[-interactive]')
AdminTask.listConnectionFactoryInterfaces (['-interactive'])
Use the listJ2CActivationSpecs command to list the activation specifications that are contained under the resource adapter and message listener type that you specify.
Target object J2C Resource Adapter object ID
Parameters and return values
Examples
Batch mode example usage:
$AdminTask listJ2CActivationSpecs $ra {-messageListenerType javax.jms.MessageListener}
AdminTask.listJ2CActivationSpecs(ra, '[-messageListenerType javax.jms.MessageListener]')
AdminTask.listJ2CActivationSpecs(ra, ['-messageListenerType', 'javax.jms.MessageListener'])
Interactive mode example usage:
$AdminTask listJ2CActivationSpecs {-interactive}
AdminTask.listJ2CActivationSpecs ('[-interactive]')
AdminTask.listJ2CActivationSpecs (['-interactive'])
Use the listJ2CAdminObjects command to list administrative objects that contain the administrative object interface that you specify.
Target object J2C Resource Adapter object ID
Parameters and return values
Examples
Batch mode example usage:
$AdminTask listJ2CAdminObjects $ra {-adminObjectInterface fvt.adaptor.message.FVTMessageProvider}
AdminTask.listJ2CAdminObjects(ra, '[-adminObjectInterface fvt.adaptor.message.FVTMessageProvider]')
AdminTask.listJ2CAdminObjects(ra, ['-adminObjectInterface', 'fvt.adaptor.message.FVTMessageProvider'])
Interactive mode example usage:
$AdminTask listJ2CAdminObjects {-interactive}
AdminTask.listJ2CAdminObjects ('[-interactive]')
AdminTask.listJ2CAdminObjects (['-interactive'])
Use the listJ2CConnectionFactories command to list the Java 2 connector connection factories under the resource adapter and connection factory interface that you specify.
Target object J2C Resource Adapter object ID
Parameters and return values
Examples
Batch mode example usage:
$AdminTask listJ2CConnectionFactories $ra {-connectionFactoryInterface javax.sql.DataSource}
AdminTask.listJ2CConnectionFactories(ra, '[-connectionFactoryInterface javax.sql.DataSource]')
AdminTask.listJ2CConnectionFactories(ra, ['-connectionFactoryInterface', 'javax.sql.DataSource'])
Interactive mode example usage:
$AdminTask listJ2CConnectionFactories {-interactive}
AdminTask.listJ2CConnectionFactories ('[-interactive]')
AdminTask.listJ2CConnectionFactories (['-interactive'])
Use the listMessageListenerTypes command to list the message listener types that are defined under the resource adapter that you specify.
Target object J2C Resource Adapter object ID
Parameters and return values
Examples
Batch mode example usage:
$AdminTask listMessageListenerTypes $ra
AdminTask.listMessageListenerTypes(ra)
AdminTask.listMessageListenerTypes(ra)
Interactive mode example usage:
$AdminTask listMessageListenerTypes {-interactive}
AdminTask.listMessageListenerTypes ('[-interactive]')
AdminTask.listMessageListenerTypes (['-interactive'])