Groups > Weblogic > WebLogic environment > [WLST] how to set targets when creating a queue




[WLST] how to set targets when creating a queue

[WLST] how to set targets when creating a queue
Fri, 16 May 2008 04:57:14 -070
Hi all,

I'm using WLS 10 and this is my WLST script:

def createUniformDistributedQueue(destinationName, jndiDestination,
jmsModuleName, managedServers):
    print '#### ready to create ' + destinationName
    path = '/JMSSystemResources/' + jmsModuleName + '/JMSResource/' +
jmsModuleName + '/UniformDistributedQueues'
    cd(path)
    cmo.createUniformDistributedQueue(destinationName)
 
    #until here all is ok, but next I got an error ... managedServers is a list
containing bnk01alm01,bnk01alm02 string values
    cmo.setTargets(managedServers)
 
    # from here it should be ok
    cd('/JMSSystemResources/' + jmsModuleName + '/JMSResource/' + jmsModuleName
+ '/UniformDistributedQueues/' + destinationName)
    set('Name', destinationName)
    set('JNDIName', jndiDestination)
 
    print '#### created ' + destinationName
    print

I'm trying to find out what is the correct API to set the targets !!!!
I'm navigating through the
http://e-docs.bea.com/wls/docs100/config_scripting/using_WLST.html and trying in
different ways but I'm not able to find out the correct way.
Thanks!!!

Regards
Post Reply
about | contact