users@glassfish.java.net

Troubles with Applet when load-balander is enabled

From: <glassfish_at_javadesktop.org>
Date: Mon, 22 Feb 2010 05:13:45 PST

Hi,

I run a simple applet which uses HttpURLConnection to connect to a servlet.
It basically works like this:
   1. Applet calls servlet
   2. Servlet sends Applet the value of request.getSession().getID as binary data
   3. Applet appends ;JSESSIONID=value to every subsequent server call

It worked ok with some old version of Weblogic, but now after migrating to Glassfish it seems the load balancer doesn't handle the session-id provided through the URL, because it distributes the requests round-robin instead to the server where the session was actually created.
Because the Servlet is stateful, it breaks :-/

Is there any way to tell the Glassfish Load Balancer to keep track of a Session-ID provided through the URL?

Thank you in advance, Clemens Eisserer
[Message sent by forum member 'linuxhippy' (linuxhippy_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=387989