2009/1/5 huntc <hu...@mac.com>:
>
> Hi Claus,
>
> Thanks for your reply - as always very helpful.
>
> Following your advice I think I can share each endpoint's IOSession object
> (the MINA session). The decoder provides a finishDecode method when a
> session close occurs. Similarly there's a dispose method for the encoder
> which I presume is called on session closure (the docs don't actually say
> but I'll check).
>
> Given that an IOSession can technically change during the lifetime of my
> Camel endpoints, I'm going to have to find some way of communicating the
> object when sending from, say 8000 to 8001. Once that is solved each set of
> codec classes should then have the ability of closing down the other
> session.
>
> Perhaps the IOSession object should even be carried around in the exchange
> header...

If the mina endpoints could deal with reconnection for you - would
that solve your issue?

It sounds from this thread - that its gonna be possible to patch the
mina endpoint to do this
http://www.nabble.com/Tcp-component-in-client-mode-td21273871s22882.html

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Reply via email to