Try
<route id=receiver1>
     <from
uri=mina:tcp//localhost:6000?textline=false&amp;sync=true&amp;codec=#myCodec"
/>
     <inOnly uri="jms:myQueue">
</route>

Best,
Christian

On Thu, Mar 7, 2013 at 3:42 PM, jrpedersen <jrpeder...@gmail.com> wrote:

> Hi,
> I am trying to use Camel (mina, jms) where I receive messages on a tcp
> port,
> using mina, and decode the message before it is put on a activemq queue.
> I want to send a ack on tcp if the message is succesfully added to the
> queue
> or a nack if not.
>
> use this route:
>
> <route id=receiver1>
>      <from
>
> uri=mina:tcp//localhost:6000?textline=false&amp;sync=true&amp;codec=#myCodec"
> />
>      <to uri="jms:myQueue">
> </route>
>
> This gives org.apache.camel.ExchangeTimedOutException: The OUT message was
> not received within: 20000 milli...
>
> How should I get jms to send a answer that the mesage is sucessfully qued?
>
> br
> JR
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-get-response-from-activeMQ-when-a-message-is-put-on-queue-tp5728765.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--

Reply via email to