Try this code it will work:
public void browseQ() throws JMSException {
QueueConnection queueConnection = null;
QueueSession queueSession = null;
QueueBrowser queueBrowser=null;
queueConnection =
QueueConnectionFactory.getInstance().getQueueConnection(channelName, hostName,
queueManagerName);
queueConnection.start();
queueSession = queueConnection.createQueueSession(false,
Session.AUTO_ACKNOWLEDGE);
Queue responseQueue =
QueueFactory.getInstance().getResponseQueue(queueSession, responseQueueName);
queueBrowser=queueSession.createBrowser(responseQueue);
Enumeration enumer=queueBrowser.getEnumeration();
while (enumer.hasMoreElements())
System.out.print(enumer.nextElement()+" ");
}
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893227#3893227
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893227
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user