1 Reply Latest reply on Apr 19, 2013 7:50 PM by 1002088

    How to assign a Quota to a Queue using WLST

      I am trying to assign a Quota to a Uniform Distributed Queue using wlst and get the following exception:
      TypeError: setQuota(): 1st arg can't be coerced to weblogic.j2ee.descriptor.wl.QuotaBean

      I am using this (pseudo) code:
      resource = jmsModule.getJMSResource()
      jmsDq = resource.createUniformDistributedQueue('TestQueue')

      I have the Quota defined as:
      -rw- BytesMaximum 5000000
      -rw- MessagesMaximum 500
      -rw- Name TestQuota
      -rw- Notes null
      -rw- Policy FIFO
      -rw- Shared false

      The Quota can be assigned to the Queue using the console.

      How in wlst can I assign an existing Quota to a Queue?