2 Replies Latest reply on Sep 12, 2007 11:27 AM by burrsutter

    ContentBasedRouting question

      I'm reading the contentBasedRouting guide and have a question it.
      In the pdf guide, the jms filter of the jms bus is defined like below :


      <jms-bus busid="QueueA">
      <jms-message-filter
      dest-type="QUEUE"
      dest-name="queue/A"
      selector="service='CBRouting-SerializableOrXml'"
      />


      I would like to know the meaning of the selector attribute named 'CBRouting-SerializableOrXml'.
      In the different examples of cbr (simple_cbr,fun_cbr) this property is never used.
      Can someone tells me about it's usefullness.
      thank in advance.
      Meissa

        • 1. Re: ContentBasedRouting question
          kurtstam

          In JMS you can define a selector on a Queue, this so you can keep the number of Queues you need to minimum. For details you can read up on JMS.

          --Kurt

          • 2. Re: ContentBasedRouting question
            burrsutter

            The exceptions_faults quickstart demonstrates a valid use of JMS selectors to minimize the number of queues. Most quickstarts use different JMS queues just to make the learning curve easier.

            In exceptions_faults make sure to check out:
            src\org\jboss\soa\esb\samples\quickstart\exceptions\test\SendJMSMessage.java and
            the build.xml which invokes it.