1 Reply Latest reply on Apr 26, 2010 8:57 PM by Willem Jiang

    servicemix jms consumer with camel router

    Gita Nanda Newbie

      Hi All,

      I have a scenario where message flow is below

      Q->camel router(dynamic recipientlist)-> external web service

      I am not sure if I should create a smx jms consumer to consume message from the queue or use camel context to read from the Q as below

       

      from("jmstx:queue:spq2").bean(myBean,"setLocationUrI") .recipientList(header(HttpProducer.HTTP_URI)).bean(myBean,"printResponse");

       

      In which scenarios we shold go for smx jms consumer and bind to camel using jbi endpoint? What are the pros and cons? Please suggest.

        • 1. Re: servicemix jms consumer with camel router
          Willem Jiang Master

          It could be more nature to use camel component inside the camel route unless you are needing some special feature of smx jms consumer.

           

          servicemix-camel component work as a bridge to connect the camel and jbi endpoint, if you want to access the jbi endpoint from camel route or send the message to the camel route from a jbi endpoint, you need to consider to use this servicemix-camel component.