[JDEV] Multiplex client sessions over single tcp stream
Colin Surprenant
ng at metaxia.com
Sun Nov 2 14:29:10 CST 2003
Hi,
I am in the process of analysing my strategy for a project that involves the integration of a Jabber server inside an existing application framework and I could really use some help and pointers to help me identify the best strategy to adopt in my particular environment.
My existing application framework is a client-server architecture and is driven by a Java backend. I basically want to add real-time events/notifications and messaging capabilities to my framework with the use of a Jabber server.
What I am looking after is a way to interconnect my application Java backend to Jabber without creating multiple tcp streams as in the current standard way of connecting multiple users with one tcp stream per user. My application backend already handles one tcp stream per connected client. All my connected clients share a central messaging engine for application level events dispatching.
What I would like to do is connect my application messaging engine to the Jabber server using a single tcp stream to handle all my clients Jabber sessions. My messaging engine could very well handle the multiplexing/demultiplexing of the Jabber sessions & streams for each client but I am not sure how to go about the Jabber side of this scenario. Should I consider creating a custom c2s component for my specific needs?
Any help and pointers will be appreciated!
Thanks,
Colin Surprenant
ng at metaxia.com
More information about the JDev
mailing list