org.apache.commons.messenger.tool
Class Caller
java.lang.Object
org.apache.commons.messenger.tool.Producer
org.apache.commons.messenger.tool.Caller
public class Caller
- extends Producer
Caller
is a sample program that
sends a message to a destination and waits for a response.
- Version:
- $Revision: 155459 $
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Caller
public Caller()
main
public static void main(String[] args)
run
public void run(String[] args)
throws Exception
- Overrides:
run
in class Producer
- Throws:
Exception
call
protected void call(javax.jms.Destination destination,
Reader reader,
Writer writer)
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.