Re: Problems with JAAS-Realm

2007-09-24 Thread Franck Borel
Hi David, thanks again for your time! There is only one instance of your realm that is shared by all incoming requests. That mean only local values inside methods are individual. Every property that is stored at instance of class level is to be accessed and stored in a ThreadSafe manner. It's

Problems with JAAS-Realm

2007-09-21 Thread Franck Borel
Hi, my problem is a bit complicate and I hope someone has enough courage to find an answer :-). First I try to explain what I want to do: I am running an JAAS-Realm with FORM authentication. As known this can only passes username and credential. Now, I was trying to pass the current IP

Re: Problems with JAAS-Realm

2007-09-21 Thread Franck Borel
Salut David, thanks very much for your answer! public SecurityConstraint[] findSecurityConstraints(Request request, Context context) { HttpServletRequest req = request;// catch Request session = req.getSession(); // catch session ipAddress =

Re: Problems with JAAS-Realm

2007-09-21 Thread David Delbecq
There is only one instance of your realm that is shared by all incoming requests. That mean only local values inside methods are individual. Every property that is stored at instance of class level is to be accessed and stored in a ThreadSafe manner. It's up to you code to be Threadsafe by