This discussion is archived
1 Reply Latest reply: Apr 19, 2013 12:50 PM by 1002088 RSS

How to assign a Quota to a Queue using WLST

1002088 Newbie
Currently Being Moderated
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')
jmsDq.setQuota('TestQuota')

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?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points