Ah!  Beautiful - this is what I was confused about - how to reference
Host B's sessions while handling one from Host A.  Apparently storing
them in a cache is 'safe' then.

Thanks so much for the direction!  I'll give it a shot and let you
know how it turns out.

- Les

On Sat, Oct 10, 2009 at 2:55 AM, Ashish <paliwalash...@gmail.com> wrote:

> had a brief look at proxy example code. Its fits in situation.
> To make this happen, you will need both Hosts to be connected before
> this can happen
>
> so lets walk through this
> Broker is up
> Host A connects to Broker
> Host A session created
> Host B connects to Broker
> Host B session is created
> Can listen for session events and keep a session registry in cache
> (ehcache or anything else)
> on message received in IoHandler, lookup for appropriate session and
> write to it.
> All this can happen either in your IoHandler or better have it
> delegated within your Broker
> If any of then breaks connection, you clean up your session cache and
> your broker logic invalidates the connection.
>
> Once basic flow is up, you can plugin your custom manipulation logic :-)
>
> HTH
>
> --
> thanks
> ashish
>

Reply via email to