-2

I currently working on two FUSE project which is interconnected. so i've tried to send Datagram packet from one project to another project using apache Camel Mina udp endpoint with custom codec. My problem is that datagram packet is received by other project although it will throws the timeout exception in project1.

Please give me the Suggestion why it so happen and how to solve it????

Tejas Patel
  • 89
  • 4
  • 16

1 Answers1

1

You are doing request/reply over that transport. And the was no reply coming back, and so after 30 seconds, there is a timeout exception.

If you do not want to do request/reply but one-way instead, then configure the camel-mina component to sync=false.

And if you want to do request/reply you can raise the timeout to be higher than 30 seconds if you need more time.

See the camel-mina docs: http://camel.apache.org/mina

Claus Ibsen
  • 56,060
  • 7
  • 50
  • 65
  • As per Your suggestion i've put sync=false in route and its working fine. but in some routes i need reply back from recipient, so in that i've set 1min of timeout but still getting the same issue. Thanks Once Again. – Tejas Patel Mar 21 '13 at 07:46
  • If you only sometimes sends back a reply. Then you need still to send back a "NO REPLY" so the caller knows there is not going to be any "real reply" message. So on the "server" side figure out this, and send back a "NO REPLY" or the "real reply". Then you can have sync=true configured. – Claus Ibsen Mar 21 '13 at 08:58