Configure custom properties for J2C connection factories using wsadmin

 

Using Jacl:

### Identify the parent ID and assign it to the newcf variable...

set newcf [$AdminConfig getid /J2CConnectionFactory:J2CCF1/]

###  Get the J2EE resource property set...
set propSet [$AdminConfig showAttribute $newcf propertySet]

### Identify the required attributes...
$AdminConfig required J2EEResourceProperty

### Set up the required attributes...
set name [list name RP4]
set rpAttrs [list $name]

###  Create a J2EE resource property...
$AdminConfig create J2EEResourceProperty $propSet $rpAttrs

$AdminConfig save

 

Using Jython:

newcf = AdminConfig.getid('/J2CConnectionFactory:J2CCF1/')
print newcf


###  Get the J2EE resource property set...
propSet = AdminConfig.showAttribute(newcf, 'propertySet')
print propSet


### Identify the required attributes...
print AdminConfig.required('J2EEResourceProperty')

### Set up the required attributes...
name = ['name', 'RP4']
rpAttrs = [name]

###  Create a J2EE resource property...
print AdminConfig.create('J2EEResourceProperty', propSet, rpAttrs)


AdminConfig.save()