camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From huntc <hu...@mac.com>
Subject Dependent endpoints
Date Mon, 05 Jan 2009 07:24:51 GMT

Hi there,

Happy New Year fellow camel riders.

I have a route something like this:


from(
 
"mina:tcp://127.0.0.1:8000?codec=zero3CodecFactory&amp;lazySessionCreation=true&amp;sync=true")
  .to(
   
"mina:tcp://127.0.0.1:8001?codec=zero3CodecFactory&amp;lazySessionCreation=true&amp;sync=true");


I was wondering it was somehow possible to have port 8000 closed if port
8001 closed and vice-versa? The above route works beautifully in that
traffic sent to port 8000 gets forwarded onto 8001 and vice-versa. However
what will happen is that the socket on port 8000 will close but the one on
8001 will stay up. 8001 is expecting the client connecting to 8000 to close.

In case you're wondering why I'm forwarding traffic on like this it is
because the thing that sits on 8001 is a horrid program that isn't reliable
from a networking perspective. I'm using MINA to front-end it so that I can
build in some decent network handling etc.

Any ideas?

Kind regards,
Christopher
-- 
View this message in context: http://www.nabble.com/Dependent-endpoints-tp21286657s22882p21286657.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message