2 Replies Latest reply on Feb 11, 2008 9:59 AM by acure

    sequece jms gateway processing

    acure

      I have service A with 3 listeners
      a_listener1 maxthread=10
      b_listener2 maxthread=1
      c_listener3 maxthread=1 gateway="true"

      I will be sure that all request from gateway will be processed in sequence - first in first out. That is guaranted only when messages from gateway are send to b_listener2 with 1 thread. I need to have a_listener1 with more than one threads for calls from other services.

      In org.jboss.soa.esb.listeners.gateway.JmsGatewayListener i see that gateway uses all eprs :/.
      How can i set destination listener for gateway? if only it is possible...

      it will be good to have some solution for sequence processing from gateway. Some solution will be to add property to gateway listener e.g. target-listener which will define destination input listener for this gateway.
      but it's only suggestion.
      how do you see this problem ?

      Acure

        • 1. Re: sequece jms gateway processing
          kurtstam

          This is a pretty standard pattern and is called the 'sequencer pattern'. We have been implementing some of these patterns, but we don't have this one yet. The 'Enterprise Integration Patterns' book has a pretty nice description of it. Your suggested solution makes sense to me. Maybe you can contribute the service (SequencerAction) back to us :).

          --Kurt

          • 2. Re: sequece jms gateway processing
            acure

            Using service to force sequenced processing have one disadvantage, it makes bigger time lag from gateway input to execute action. :/. i will write and test it, but i think that faster sollution it will be to implement it on gateway "epr selector".

            Acure