Reputation: 23
I am trying to set Default JTA data source JNDI name using jython WSadmin.
try with the following command.
AdminTask.setDefaultManagedExecutor('[-server server1 -targetJndiName jdbc/wemDST]')
Thanks
Upvotes: 1
Views: 79
Reputation: 5330
Try this:
cellName = AdminConfig.showAttribute(AdminConfig.list("Cell"), "name")
newDSName = "jdbc/whatever"
AdminTask.setDefaultDataSource('/Cell:' + cellName + '/', '[-targetJndiName ' + newDSName + ']')
AdminConfig.save()
Upvotes: 1