org.apache.commons.messenger.tool
Class Consumer

java.lang.Object
  extended by org.apache.commons.messenger.tool.Consumer

public class Consumer
extends Object

Consumer is a sample program that consumes a single message and either writes it to either stanard output or a named file.

Version:
$Revision: 155459 $
Author:
James Strachan

Constructor Summary
Consumer()
           
 
Method Summary
static void main(String[] args)
           
 void run(String[] args)
           
protected  void writeMessage(javax.jms.Message message, Writer out)
          Writes the given message to the Writer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Consumer

public Consumer()
Method Detail

main

public static void main(String[] args)

run

public void run(String[] args)
         throws Exception
Throws:
Exception

writeMessage

protected void writeMessage(javax.jms.Message message,
                            Writer out)
                     throws Exception
Writes the given message to the Writer

Throws:
Exception


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.