user2431334
user2431334

Reputation: 23

How to set Default JTA data source JNDI name using jython WSadmin

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

Answers (1)

Scott Kurz
Scott Kurz

Reputation: 5330

Try this:

cellName = AdminConfig.showAttribute(AdminConfig.list("Cell"), "name")
newDSName = "jdbc/whatever"
AdminTask.setDefaultDataSource('/Cell:' + cellName + '/', '[-targetJndiName ' + newDSName + ']')
AdminConfig.save()

Upvotes: 1

Related Questions