simply use the keyword synchronized in your servlet doService() or doGet() or doPost() method. thats it.Then concurrent threads cant enter at the same time. one after another.
On Thu, Mar 25, 2010 at 7:08 PM, Ho Jimmy <jimmyyl...@gmail.com> wrote: > Hi, > > I am new to GWT. So, this is a newbie question but I have google it a while > but I am not able to find a simple example. > How can I create the servlet thread safe? For traditional servlet, we use > Threadlocal. So how can we define the similiar for GWT RPC servlet? > Pls also describe a bit about the thread pool and I can have some direction > of my learning. > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.