I have the following routes: http://pastebin.ca/1929016

If the link is broken, see the following:

<route>
  <from uri="activemq:mm01.in" />

  <setExchangePattern pattern="InOut" />
  <to uri="activemq:mm01.rin?replyTo=mm01.rout" />
</route>


<route>
  <from uri="activemq:mm01.rin" />

<!--
  Problem cause
  <to uri="bean:internalViewer?method=view" />
  <setExchangePattern pattern="InOut" />
  <routingSlip>
    <header>beanExecPre</header>
  </routingSlip>
  <to uri="bean:internalViewer?method=view" />
-->

  <to uri="bean:interMessageController?method=toExternalMessage" />
  <to uri="bean:communicator?method=write" />
</route>

<route>
  <from uri="bean:communicator?method=readNext" />
  <to uri="bean:interMessageController?method=toInternalMessage" />
  <to uri="activemq:mm01.rout" />
</route>

The problem is, if I uncomment the XML comment 'Problem cause', the route
will be error. Unpredicted behaviour occurs. Why this happens?

This bean:interMessageController is a bean that put back jms correlation id
in x.getOut(). I think the problem is that queue doesn't support inOut with
replyTo where the inner process also contains inOut.

Anyone can help me?

Thanks

-- 
~The best men are men who benefit to others
http://michsan.web.id 一緒に勉強しましょう!

Yang berkualitas memang beda rasanya!
http://rizqi-cookies.com

Reply via email to