Using Jacl:
$AdminConfig required J2CAdminObject
Using
Jython:
print AdminConfig.required('J2CAdminObject')
Example
output:
Attribute Type
adminObject AdminObject@
- If your resource adapter is JCA V1.5 and you have multiple administrative
objects defined, it is required that you specify the administrative
object attribute. If your resource adapter is JCA V1.5 and you have
only one administrative object defined, it will be picked up automatically.
If your resource adapter is JCA V1.0, you do not need to specify the
administrative object attribute. Perform the following command to
list the administrative objects defined by the resource adapter:
Using
Jacl:
$AdminConfig list AdminObject $newra
Using
Jython:
print AdminConfig.list('AdminObject', $newra)
- Set the administrative objects that you need to a variable:
Using
Jacl:
set ao AdminObjectId
set name [list name J2CAO1]
set jname [jndiName eis/j2cao1]
set j2caoAttrs [list $name $jname]
Using Jython:
ao = AdminObjectId
name = ['name', 'J2CAO1']
set jname = ['jndiName', eis/j2cao1]
j2caoAttrs = [name, jname]
- If you are specifying the AdminObject attribute, also set up the
following:
Using Jacl:
set cdattr [list adminObject $ao]
Using Jython:
cdattr = ['adminObject', ao]
- Create a J2C administrative object:
Using Jacl:
$AdminConfig create J2CAdminObject $newra $j2caoAttrs
Using
Jython:
print AdminConfig.create('J2CAdminObject', newra, j2caoAttrs)