Hello all,

Im new to camel and currently doing an evaluation exercise!

What Im trying to achieve is to place camel in the middle of two apps.
The apps use XML over TCP to communicate over one connection. The message
pattern is kinda pub/sub or single request with multiple replies.

The msgs flows are....

             ----REG---->               ----REG--->
CLIENT   <--ACK------   CAMEL   <--ACK-----   SERVER
            <--MSG1----                <--MSG1---
            <--MSG2----                <--MSG2---
                                              <--etc-----

Ive implemented an XML codec which I belive works ok. However using the
following...

<camelContext xmlns="http://camel.apache.org/schema/spring"; trace="false">
  <route>
    <from
uri="mina:tcp://localhost:17171?sync=true&amp;disconnectOnNoReply=false&amp;allowDefaultCodec=false&amp;codec=#ptCodec"/>
    <to
uri="mina:tcp://localhost:9998?sync=true&amp;allowDefaultCodec=false&amp;disconnectOnNoReply=false&amp;codec=#ptCodec"/>
  </route>
</camelContext>

.... only allows the ACK to be received by the client (no msgs). The
additional msgs are received by the 'encoder' of the <to> codec but not
passed on. Im assuming that the session correlates one response for each
request.

How can camel be used for this pattern? 

Any help will be appreciated.

Cheers

Jon.

--
View this message in context: 
http://camel.465427.n5.nabble.com/Single-request-with-multiple-replies-over-TCP-tp5022206p5022206.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to