|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
how to call wsadmin object in jython script |
« View previous topic :: View next topic » |
Author |
Message
|
pandeg |
Posted: Wed Sep 21, 2016 9:12 am Post subject: how to call wsadmin object in jython script |
|
|
Disciple
Joined: 21 Oct 2014 Posts: 195
|
Hi, I have installed both Jython and python and able to write normal script. I want to use wsadmin objects for automation task. How can i nvoke wsadmin in python/jython script. Do i need to import any library to identify these object in script. Please share the steps or any link. |
|
Back to top |
|
 |
Tuyenpx |
Posted: Tue Oct 04, 2016 12:37 am Post subject: |
|
|
Newbie
Joined: 04 Oct 2016 Posts: 3
|
You can use JACL or jython to run wsadmin
Using Jacl:
$AdminApp install $embeddedEar {-ActSpecJNDI
{{"FVT Resource Adapter" jca15cmd.rar,META-INF/ra.xml javax.jms.MessageListener jndi5}
{"FVT Resource Adapter" jca15cmd.rar,META-INF/ra.xml javax.jms.MessageListener2 jndi6}}}
$AdminApp install c:/myapp.ear {-BindJndiForEJBNonMessageBinding {{Ejb1 MessageBean
ejb-jar-ic.jar,META-INF/ejb-jar.xml com.acme.ejbws.AnnuityMgmtSvcEJB2xJAXRPC "" ""}}}
Using Jython:
AdminApp.install(embeddedEar, ['-ActSpecJNDI',
[["FVT Resource Adapter", 'jca15cmd.rar,META-INF/ra.xml', 'javax.jms.MessageListener', 'jndi5'],
["FVT Resource Adapter", 'jca15cmd.rar,META-INF/ra.xml', 'javax.jms.MessageListener2', 'jndi6']]])
AdminApp.install('myapp.ear', '[-BindJndiForEJBNonMessageBinding [[Ejb1 MessageBean
ejb-jar-ic.jar,META-INF/ejb-jar.xml com.acme.ejbws.AnnuityMgmtSvcEJB2xJAXRPC "" ""]]]') |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|