Arch4J 1.1

org.arch4j.messaging
Class MessageTopicFacadeTest

java.lang.Object
  |
  +--org.arch4j.messaging.MessageTopicFacadeTest
All Implemented Interfaces:
javax.jms.MessageListener

public class MessageTopicFacadeTest
extends Object
implements javax.jms.MessageListener

Provides a high level test of the message topic facade class architecture with simple publish and subscribe functionality.

To setup the environment for this test, a topic named "org.arch4j.testTopic" must exits in the JMS implementation. The messaging.properties property file must also be set up to reference the MessageTopicFacade implementation class. Run two or more instances of this class from the command line.

Version:
1.0
Author:
David Colwell

Constructor Summary
MessageTopicFacadeTest()
           
 
Method Summary
static void main(String[] argv)
          Main program entry point.
 void onMessage(javax.jms.Message aMessage)
          Handle an incoming message (as specified in the javax.jms.MessageListener interface).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageTopicFacadeTest

public MessageTopicFacadeTest()
Method Detail

onMessage

public void onMessage(javax.jms.Message aMessage)
Handle an incoming message (as specified in the javax.jms.MessageListener interface).

Specified by:
onMessage in interface javax.jms.MessageListener

main

public static void main(String[] argv)
Main program entry point. It creates and runs an instance of this class.


Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.