Connect and login serverside, createChat in applet

I think this is the best approach, my web app knows the login status of the user. The applet starts/restarts/initialises quite randomly.

I’'d like to create an XMPPConnection serverside and login. Then in the applet somehow get that connection object and start chats. Can this be done without serialising connection objects over a URLConnection?

TIA

Mike W

Alternatively in the same way but keeping the solution purely client side, can I somehow get hold of a connection object in the applet for an already logged in user? When I navigate between pages my Applet reinitialises from scratch but the login remains on the wildfire server. When the applet reinitialise I want to grab that logged in connection somehow?