xflow.events
Class EventsHandler

java.lang.Object
  extended byxflow.events.EventsHandler
All Implemented Interfaces:
javax.jms.MessageListener

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

Author:
xzma The event handler will receive the event messages asynchronously using a JMS topicsubscription and save the event infomation into database.

Constructor Summary
EventsHandler(java.util.Properties props)
          Constructor.
 
Method Summary
static void main(java.lang.String[] args)
           
 void onMessage(javax.jms.Message evt)
          the method defined from MessageListener interdace, it monitors possible incoming message events
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventsHandler

public EventsHandler(java.util.Properties props)
Constructor. Properties file is used for getting DB info when EventsHandler is running standalone.

Method Detail

onMessage

public void onMessage(javax.jms.Message evt)
the method defined from MessageListener interdace, it monitors possible incoming message events

Specified by:
onMessage in interface javax.jms.MessageListener

main

public static void main(java.lang.String[] args)
                 throws XflowException,
                        javax.jms.JMSException
Throws:
XflowException
javax.jms.JMSException