org.apache.commons.messenger.tool
Class Caller

java.lang.Object
  extended by org.apache.commons.messenger.tool.Producer
      extended by 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

Field Summary
 
Fields inherited from class org.apache.commons.messenger.tool.Producer
messenger
 
Constructor Summary
Caller()
           
 
Method Summary
protected  void call(javax.jms.Destination destination, Reader reader, Writer writer)
           
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 org.apache.commons.messenger.tool.Producer
createMessage, readText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Caller

public Caller()
Method Detail

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.