title: A resource already exists
body: <p>I have an XML list of queues. I configure them without problems with python script and wsadmin console.
  Now I want to add new queues to the existing list and create them.
  While creating, console recognizes that queues with JNDI names already exist, and then it stops script.
  how can I IGNORE resources that already exist and keep creating newly added queues</p>
  <p>My python script</p>
  <pre><code>import sys
  sys.modules['AdminConfig'] = AdminConfig
  sys.modules['AdminControl'] = AdminControl
  sys.modules['AdminApp'] = AdminApp
  sys.modules['AdminTask'] = AdminTask
  sys.modules['Help'] = Help
  import myfunctions as fl
  
  import xml.etree.ElementTree as ET
  tree = ET.parse('queue_xml/queue.xml')
  root = tree.getroot()
  
  scopes = root.findall('.//scope')
  
  
  def createqueue(server_id,ime,jndi,mqname):
      print(server_id)
      print(&quot;creating &quot;+ime,jndi,mqname)
      print(&quot;-------------------------------------------&quot;)
      AdminTask.createWMQQueue(server_id,
                                   ['-name', ime,
                                   '-jndiName', jndi,
                                   '-queueName', mqname
                                    ]
                                    )                 
  
  for scope in scopes:
          typee= scope.find('type').text
          scopename= scope.find('scopename').text
          qe = scope.findall('.//queue')
          for q in qe:
              ime = q.find('name').text
              jndi = q.find('jndi').text
              mqname = q.find('mqname').text
              x = fl.get_scope(typee, scopename)
              createqueue(x,ime,jndi,mqname)
  
  AdminConfig.save()
  </code></pre>
  <p>XML script</p>
  <pre><code>&lt;data&gt;
  &lt;scope&gt;
      &lt;type&gt;cluster&lt;/type&gt;
      &lt;scopename&gt;TRX&lt;/scopename&gt;
      &lt;queue&gt;
          &lt;name&gt;AuthenticFlagUpdate100&lt;/name&gt;
          &lt;jndi&gt;jms/as/AuthenticFlagUpdate100&lt;/jndi&gt;
          &lt;mqname&gt;GCWOD1.QU.CCMS.AUTH.FLAG.UPDATE100&lt;/mqname&gt;
      &lt;/queue&gt;
  &lt;/scope&gt;
  
  &lt;scope&gt;
      &lt;type&gt;Servernode&lt;/type&gt;
      &lt;scopename&gt;Node:somenode/Server:someserver&lt;/scopename&gt;
      &lt;queue&gt;
          &lt;name&gt;AuthenticFlagUpdate230&lt;/name&gt;
          &lt;jndi&gt;jms/as/AuthenticFlagUpdate230&lt;/jndi&gt;
          &lt;mqname&gt;GCWOD1.QU.CCMS.AUTH.FLAG.UPDATE200&lt;/mqname&gt;
      &lt;/queue&gt;
  &lt;/scope&gt;
  
  &lt;scope&gt;
      &lt;type&gt;Node&lt;/type&gt;
      &lt;scopename&gt;somenode&lt;/scopename&gt;
      &lt;queue&gt;
          &lt;name&gt;AuthenticFlagUpdate310 &lt;/name&gt;
          &lt;jndi&gt;jms/as/AuthenticFlagUpdate310&lt;/jndi&gt;
          &lt;mqname&gt;GCWOD1.QU.CCMS.AUTH.FLAG.UPDATE300&lt;/mqname&gt;
      &lt;/queue&gt;
  &lt;/scope&gt;
  &lt;/data&gt;
  </code></pre>