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...

Tomorrow's challenge!

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

Reply via email to