Sunday, April 13, 2014

Re: GWT Multiple Servlet Instances

Server Code:

Works for users which authenticate:

import javax.servlet.http.HttpSession;
private HttpSession                                                    mshSESSION            = null;
this.getRequest().getSession(true)
then use get and set attribute

For users which do not authenticate use cookies

Regards


On Sun, Apr 13, 2014 at 5:33 AM, <raschid8643@gmail.com> wrote:
Thank you for the fast reply, but can you explain in a few words how to implement the solution with the session?

Kind Regards

Am Samstag, 12. April 2014 16:03:17 UTC+2 schrieb Ed:
Servlet instances come and go with requests and are reusable,, consider using session for these variables


On Sat, Apr 12, 2014 at 7:31 AM, <rasch...@gmail.com> wrote:
Hi,

i am student from a german university and we are implementing a Client-Server-System with GWT. For our Application (it is not necessary to explain the Application) we one Servlet instance per Client.
For example: If we have a LoginServlet, each Client should have its own Servlet instance. If the Servlet declares for example a static variable, the variable should be different for each Client. 

Kind Regards

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment