Hi

Sorry I am using a shite mail client so reply is here in top.

Camel has many solutions. So I pick the one I can think of right now.

The "mina stuff in the route" should be replaced with a processor. In the 
processor you can do manual java code and manually invoke the mina component 
and get the response. And then set the response on the original exchange object.

Public void process(Exchange exchange) {
   ProducerTemplate template = 
Exchange.getCamelContext().createProducerTemplate();

   String body = exchange.getIn().getBody(String.class);
   Object response = 
template.sendBody("mina:tcp://remoteserver:port?sync=true&textline=true");

   // set new input on original exchange with the mina response
   exchange.getIn().setBody(response);
}




Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: dkozic [mailto:[EMAIL PROTECTED] 
Sent: 26. august 2008 11:04
To: [email protected]
Subject: RE: mina tcp client problem


Hi there,


Claus Ibsen wrote:
> 
> As a workaround you must manually "remember" the headers and set them
> after the mina stuff.
> 
Can you elaborate a little bit more or provide example?

Thanks in advance


Claus Ibsen wrote:
> 
> Could you add a ticket for the "camel-mina should preserve headers"
> feature. Then we can implement it right away and get it in Camel 1.5
> 

Jira issue created:
https://issues.apache.org/activemq/browse/CAMEL-850



-- 
View this message in context: 
http://www.nabble.com/mina-tcp-client-problem-tp19105767s22882p19158327.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to