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
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 |
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
PingClient
public PingClient()
- Constructor for the PingClient object
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