I thought I did it. Here are my steps 1. first get jsessionid from servlet 2. pass the jsessionid to applet (through htm page) 3. inside applet, create a new HTTPUrlConnection, and set cookie property with jsessionid. 4. connect to server. 5. In server, the request was sent to a different tomcat instance (this is against the sticky session as stated in tomcat cluster).
I might have missed out something, please point them out if so. Thanks, -Simon -----Original Message----- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 2:56 PM To: Tomcat Users List Subject: Re: Applet in tomcat clustering you will need to send up cookies just like the HTTP protocol says in order to keep state Filip ----- Original Message ----- From: "Simon Zeng" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Monday, July 12, 2004 1:39 PM Subject: RE: Applet in tomcat clustering > My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate > between applet and server. > > Thanks, > -Simon > > -----Original Message----- > From: Simon Zeng [mailto:[EMAIL PROTECTED] > Sent: Monday, July 12, 2004 1:51 PM > To: 'Tomcat Users List' > Subject: Applet in tomcat clustering > > > > Hi, > > Does any use applet in tomcat clustering?I have an question and need some > help. > > I have set up two tomcat instances in cluster/load balance. My > webapplication has one feature using applet. As I understand, tomcat > cluster/load balance has sticky session which means subseqent requests being > sent to the same tomcat once the browser/server connection is setup. This is > true in my application except while using applet, the request is sent to > different tomcat randomly. I use HTTPTunnel to communicate between applet > and server. > > Thanks, > > -Simon > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
