I want to send a message sequentially to two destinations first is JMS
provider and second is BEAN.
The flow is like this:
1)Client sends a message
2)Message is received and sent to JMS Provider. At JMS Provider the message
may be successfully sent to a queue OR there can be any failure (In case
something goes wrong at JMS Provider)
3)Identify what happens at the JMS provider. If could send the message to
queue successfully then send "success" message to client. If something goes
wrong at JMSProvider send "error" message to client. I will use BEAN for
this. That is BEAN will frame a proper message that has to be sent to the
client.

How can I achieve this?
I tried using static routing slip like this:
<eip:static-routing-slip service="hello:eipService" endpoint="eipEndpoint">
    <eip:targets>
      <eip:exchange-target service="hello:jmsProviderService" />
      <eip:exchange-target service="hello:bean2Service" />
    </eip:targets>
  </eip:static-routing-slip>

 but I get following error:
error: java.lang.IllegalStateException: Unable to choose replyDestination
for exchange InOut

I think it is because JMS Provider is in-only and when I use it in static
routing slip it will always expect a response from it.
How can I make my JMS Provider to respond back?

Is there any other way to handle this problem? may be some other eip
pattern?

Pratibha

-- 
View this message in context: 
http://www.nabble.com/How-to-send-a-message-sequentially-tp17798109p17798109.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to