net.sf.xbus.tools
Class QBrowser

java.lang.Object
  extended by net.sf.xbus.tools.QBrowser

public class QBrowser
extends java.lang.Object

The QBrowser uses a QueueBrowser interface to look a messages on a queue without removing them and to print them in the specially format on the console. The browse methods return a java.util.Enumeration that is used to scan the queue's messages. Messages may be arriving and expiring while the scan is done. It uses following format for messages output:

 "yyyy-MM-dd HH:mm:ss,SSS message"
 


Constructor Summary
QBrowser()
           
 
Method Summary
static void main(java.lang.String[] args)
          The main method creates a JMS-QueueBrowser for the given queue and prints each message from the enumeration on the console in the following format: "yyyy-MM-dd HH:mm:ss,SSS message"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QBrowser

public QBrowser()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
The main method creates a JMS-QueueBrowser for the given queue and prints each message from the enumeration on the console in the following format:
 "yyyy-MM-dd HH:mm:ss,SSS message"
 

Throws:
java.lang.Exception