I am trying to create jmsprovider resource using wsadmin as show below in WAS ND 8.5.5.9 installed version
- Setting the scope to TestDmgrNode
wsadmin>AdminConfig.getid('/Node:TestDmgrNode/')
'TestDmgrNode(cells/TestCell/nodes/TestDmgrNode|node.xml#Node_1)'
- Adding JMSProvider at above scope
wsadmin>AdminConfig.create('JMSProvider', node, [['name', 'TestProvider1'], ['description', 'TestProvider1'], ['classpath', '/var/tmp/test.jar'], ['externalInitialContextFactory', 'testICF'], ['externalProviderURL', 'testexternalurl']])
'TestProvider1(cells/TestCell/nodes/TestDmgrNode|resources.xml#JMSProvider_1517482261206)'
wsadmin>AdminConfig.save()
Once, i have saved the configuration i am able to see the resource in under JMS Provider section, Now i tried to run the same command again and it saves the same resource again without throwing any Exception that a resource with 'name' already exists.
wsadmin>AdminConfig.create('JMSProvider', node, [['name', 'TestProvider1'], ['description', 'TestProvider1'], ['classpath', '/var/tmp/test.jar'], ['externalInitialContextFactory', 'testICF'], ['externalProviderURL', 'testexternalurl']])
'TestProvider1(cells/TestCell/nodes/TestDmgrNode|resources.xml#JMSProvider_1517482261206)'
wsadmin>AdminConfig.save()
Could anybody guide if its related any bug in the version that is installed
Note - When i try to add the same resource again using the admin console it is throwing error.
Please suggest Thanks Sudhir