My queue is deployed using jboss messaging with PageSize configured as 1000. I am using
the following code to browse the messages on queue
QueueBrowser browser = session.createBrowser(queue);
connection.start();
Enumeration msgs = browser.getEnumeration();
int count = 0;
if ( !msgs.hasMoreElements() ) {
System.out.println("No messages in queue");
} else {
while (msgs.hasMoreElements()) {
count++;
TextMessage tempMsg = (TextMessage)msgs.nextElement();
System.out.println("Message: " + tempMsg.getText());
}
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245167#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...