ie.nuigalway.ecrg.jade.jmsagentgateway.examples
Class PingClient

java.lang.Object
  |
  +--ie.nuigalway.ecrg.jade.jmsagentgateway.examples.PingClient
All Implemented Interfaces:
javax.jms.MessageListener

public class PingClient
extends java.lang.Object
implements javax.jms.MessageListener

Simple application for showing how to ping the PingAgent byt sending a message to the pingAgent/ping queue and lisenting for a response on the pingAgent/pong topic

Version:
0.5 12 January 2004
Author:
Edward Curry

Field Summary
private  int _count
           
private  int _received
           
private  boolean _summary
           
private  javax.jms.QueueConnection queueConnection
           
private  javax.jms.QueueConnectionFactory queueConnectionFactory
           
private  javax.jms.TopicSubscriber subscriber
           
private  javax.jms.TopicConnection topicConnection
           
private  javax.jms.TopicConnectionFactory topicConnectionFactory
           
 
Constructor Summary
PingClient()
          Constructor for the PingClient object
 
Method Summary
static void main(java.lang.String[] args)
          The main program for the PingClient class
 void onMessage(javax.jms.Message msg)
          All messages that for this listener are received by this method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queueConnectionFactory

private javax.jms.QueueConnectionFactory queueConnectionFactory

queueConnection

private javax.jms.QueueConnection queueConnection

topicConnectionFactory

private javax.jms.TopicConnectionFactory topicConnectionFactory

topicConnection

private javax.jms.TopicConnection topicConnection

subscriber

private javax.jms.TopicSubscriber subscriber

_count

private int _count

_received

private int _received

_summary

private boolean _summary
Constructor Detail

PingClient

public PingClient()
Constructor for the PingClient object

Method Detail

main

public static void main(java.lang.String[] args)
The main program for the PingClient class

Parameters:
args - The command line arguments

onMessage

public void onMessage(javax.jms.Message msg)
All messages that for this listener are received by this method

Specified by:
onMessage in interface javax.jms.MessageListener
Parameters:
msg - Description of the Parameter