1 Reply Latest reply on Oct 15, 2003 8:21 PM by Adrian Brock

    Multiple readers with different selectors on one queue?

    chris weiland Newbie

      Is it recommended for or against, to implement more than one reader on a queue (each reader has its own Session), with each reader specifying a different value for a selector?

      For example, one reader might have a selector of "Rule = 'a'"; a second reader might have a selector of "Rule = 'b'"

      What I'm trying to accomplish is the ability to have multiple processor threads on the receiving end, each responsible for handing messages for its own 'rule', and to effectively have each rule's processor running in parallel, so that all rules appear to be processed at the same time.

      I know the JMS spec says the behavior of multiple readers is unspecified.

      EJBs and message-driven beans aren't an option for this problem.


      - chris