[email protected] wrote:
Bob,
Great, thanks a lot, it's a pure java solution and is working fine.
It's clear that if i would like to preserve other sessions trying to do the
same, i should use a global object, in this case, could i use the ClickServlet
or something like that ?
You mean you only want one request to be processed at a time for all
users? In that case you could synchronize on
the ServletContext which is application scoped:
public void onInit() {
Context context = getContext();
synchronize(context.getServletContext()) {
}
}
bob