public class Caller extends Producer
Caller is a sample program that
sends a message to a destination and waits for a response.
| Constructor and Description |
|---|
Caller() |
| Modifier and Type | Method and Description |
|---|---|
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
|
createMessage, readTextpublic static void main(java.lang.String[] args)
public void run(java.lang.String[] args)
throws java.lang.Exception
protected void call(javax.jms.Destination destination,
java.io.Reader reader,
java.io.Writer writer)
throws java.lang.Exception
java.lang.Exceptionprotected void writeMessage(javax.jms.Message message,
java.io.Writer out)
throws java.lang.Exception
java.lang.Exception