cgl.narada.jms
Class JmsReceivedEventDistributor

java.lang.Object
  extended by cgl.narada.jms.JmsReceivedEventDistributor

public class JmsReceivedEventDistributor
extends Object

There could be multiple sessions registered to a given connection. When an event is received we need to make sure that event is routed only to the appropriate sessions. Furthermore, there exist multiple subscribers, possibly, on any given session. The session has thus to ensure that the event is routed to appropriate subscribers. Once the event is received at a subscriber, it needs to be routed to its appropriate message listener.


Constructor Summary
JmsReceivedEventDistributor()
           
 
Method Summary
static boolean matchesSessionTopic(String topicInEvent, String sessionTopic)
           
static boolean matchesSpecifiedSelector(String topicInEvent, String messageSelector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsReceivedEventDistributor

public JmsReceivedEventDistributor()
Method Detail

matchesSessionTopic

public static boolean matchesSessionTopic(String topicInEvent,
                                          String sessionTopic)

matchesSpecifiedSelector

public static boolean matchesSpecifiedSelector(String topicInEvent,
                                               String messageSelector)


For comments and suggestions please send e-mail to The NaradaBrokering Project