By Luz Mestre-Oracle on Nov 11, 2013
Here are the steps:
1. . ./setDomainEnv.sh
2. java weblogic.WLST
7. msgs = cmo.getNext(cursor1, 10)
** This step gets 10 messages, you can call again cmo.getNext(cursor1, 10) to get the next 10 msgs
My assumption, is that you had created:
a. Managed Server MS1.
b. JMS Server JMSServer1.
c. Module called JMSModule1.
d. Inside of JMSModule1, a Queue called Queue1.
If you read my previous post:
How to get Messages Pending Count from a Queue using WLST?
You can see that both are very similar. Sometimes it is difficult to get a WLST Script sample, but you can use ls() function to know about other functionalities you don't have a sample code.
***Until step 5, nothing new comparing to my previous post.
You will see, MessagesPendingCount, getMessages along a lot of other functionalities available in this Queue.
e.g, you can see:
-r-x getMessages String : String(selector),Integer(timeout),Integer(state)
Here you can check the complete MBean Reference: