1 2 Previous Next 17 Replies Latest reply on Jul 26, 2007 10:40 AM by rukus Go to original post
      • 15. Re: 2 queues on 2 servers
        rukus

         

        "bernard.tison" wrote:
        Rukus,

        jboss-esb.xml is the configuration file - used to configure providers, services and actions in a esb deployment (.esb archive)
        Please have a look at the quickstarts to see how it is used.

        Now back to your original question: if I understand it right what you want to do is the following:
        - your client sends a message into a gateway endpoint (a JMS queue) on JBossESB running on machine A
        - the gateway wraps the incoming payload into a ESB message and puts it on a queue
        - a service A listening to this queue picks up this message
        - the service routes the message to a queue on machine B, on which JBossESB is running
        - on machine B, the message is picked up and processed by a service B listening to this queue.

        Does that describe your use case?

        Bernard

        We can simplify it for:
        - your client sends a message queue on machine A
        - a service listening to this queue picks up this message
        - the service routes the message to a queue on machine B, on which JBossESB is running
        - on machine B, the message is picked up and processed by a service B listening to this queue.


        • 16. Re: 2 queues on 2 servers
          burrsutter

           


          - your client sends a message queue on machine A
          - a service listening to this queue picks up this message
          - the service routes the message to a queue on machine B, on which JBossESB is running
          - on machine B, the message is picked up and processed by a service B listening to this queue.


          - client sends message to queue on machine A:
          see quickstart helloworld SendJMSMessage.java
          - a service listening to this queue picks up this message:
          Assuming this an ESB hosted service, see helloworld jboss-esb.xml to see how this is achieved
          - the service routes the message to a queue on machine B:
          now this is the tricky one because you need to make a connection to machine B but this code is running inside of the ESB on machine A. I would suggest you look at the code in SendJMSMessage.java (helloworld) as you will not be able to use the Notifier Action - org.jboss.soa.esb.actions.Notifier that you see in some of the quickstarts. You will need to write your own custom action (see more_action for an example) to send your message to another machine by first loading the correct properties for the remote box.

          In this use case, you are simply writing everyday JMS code to move a message from A to B with ESB's running on both machines. There is nothing in the ESB that provides this kind of routing without sharing the registry and performing some other setup to make the 2 ESB instances look like one.

          Burr


          • 17. Re: 2 queues on 2 servers
            rukus

            Thanks for your answer but I have one more question:
            If message proccesed by my bridge_action and some fault occurs: so action get message from A but not copied it to B.... can I restore this message after eliminating fault??

            1 2 Previous Next