ie.nuigalway.ecrg.jade.jmsmtp.examples
Class JadeQueueSender

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

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

Simple application for showing how to put a message into the JADE message queue using JMS-MTP. JADE ACLMessage classes are used as a convenience for constructing the ACL Message string.

Version:
1.0 14 January 2004
Author:
Eduardo H. Ramirez , Monterrey Institute of Technology.
, Edward Curry - NUI, Galway

Field Summary
private  int _count
           
private  int _received
           
private  java.lang.String ICF
           
private  MapMessageUtil mapUtil
           
private  java.lang.String PING_AGENT_NAME
           
private  java.lang.String PLATFORM_DEST
           
private  java.lang.String PROVIDER_URL
           
private  javax.jms.QueueConnection queueConnection
           
private  javax.jms.QueueConnectionFactory queueConnectionFactory
           
private  javax.jms.QueueReceiver receiver
           
private  java.lang.String REPLY_TO_DEST
           
private  java.lang.String REPLY_TO_JMSMTP_ADDRESS
           
private  FipaXMLUtil xmlUtil
           
 
Constructor Summary
JadeQueueSender()
          Constructor for the JadeQueueSender object
 
Method Summary
static void main(java.lang.String[] args)
          The main program for the JadeQueueSender 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

mapUtil

private MapMessageUtil mapUtil

xmlUtil

private FipaXMLUtil xmlUtil

queueConnectionFactory

private javax.jms.QueueConnectionFactory queueConnectionFactory

queueConnection

private javax.jms.QueueConnection queueConnection

receiver

private javax.jms.QueueReceiver receiver

_count

private int _count

_received

private int _received

ICF

private java.lang.String ICF

PROVIDER_URL

private java.lang.String PROVIDER_URL

REPLY_TO_DEST

private java.lang.String REPLY_TO_DEST

PLATFORM_DEST

private java.lang.String PLATFORM_DEST

REPLY_TO_JMSMTP_ADDRESS

private java.lang.String REPLY_TO_JMSMTP_ADDRESS

PING_AGENT_NAME

private java.lang.String PING_AGENT_NAME
Constructor Detail

JadeQueueSender

public JadeQueueSender()
Constructor for the JadeQueueSender object

Method Detail

main

public static void main(java.lang.String[] args)
The main program for the JadeQueueSender 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