Obtain QueueBrowser object via session.createBrowser() method,
get the first message using getFirstMessage() of the QueueBrowser object and
retrieve all other messages via nextMessage() method of the Message object
Obtain first message using getFirstMessage() of the Queue object and
retrieve all other messages via nextMessage() method of the Message object
Use getMessages() method of the Queue object
Obtain QueueBrowser object via session.createBrowser() method and
get the Enumeration using browser.getEnumeration() method
Obtain first message using getFirstMessage() of the Queue object and
retrieve all other messages via nextEllement() method of the Message object
Use getEnumeration() method of the Queue object
|