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
Method Summary |
protected void |
call(javax.jms.Destination destination,
java.io.Reader reader,
java.io.Writer writer)
|
static void |
main(java.lang.String[] args)
|
void |
run(java.lang.String[] args)
|
protected void |
writeMessage(javax.jms.Message message,
java.io.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 |
Caller
public Caller()
main
public static void main(java.lang.String[] args)
run
public void run(java.lang.String[] args)
throws java.lang.Exception
- Overrides:
run
in class Producer
- Throws:
java.lang.Exception
call
protected void call(javax.jms.Destination destination,
java.io.Reader reader,
java.io.Writer writer)
throws java.lang.Exception
- Throws:
java.lang.Exception
writeMessage
protected void writeMessage(javax.jms.Message message,
java.io.Writer out)
throws java.lang.Exception
- Writes the given message to the Writer
- Throws:
java.lang.Exception