org.apache.commons.messenger.tool
Class Consumer
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Consumer
public Consumer()
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.