Hi
We have migrated to Resin 4 from 2.0.23.
In conjunction with standard FormLogin we use a CustomAuthenticator
which implements authenticate and performs a number of actions as part
of the authenticate call.
Since upgrading to Resin 4 we are seeing that the authenticate method is
being called 3 times when a user logs in which we don't want much
because it makes a number of database calls.
Is this normal/expected behaviour? Is there anything we can do to stop this?
[11-11-24 12:18:12.699] {http://*:443-12} Http[default, 12] POST
/guestpages/j_security_check HTTP/1.1
[11-11-24 12:18:12.699] {http://*:443-12} Http[default, 12] Remote-IP:
127.0.0.1:53170
[11-11-24 12:18:12.699] {http://*:443-12} Http[default, 12] Host:
secure.libertyaccounts.com
[11-11-24 12:18:12.699] {http://*:443-12} Http[default, 12] User-Agent:
Mozilla/5.0 (X11; SunOS i86pc; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
[11-11-24 12:18:12.699] {http://*:443-12} Http[default, 12] Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[11-11-24 12:18:12.699] {http://*:443-12} Http[default, 12]
Accept-Language: en-us,en;q=0.5
[11-11-24 12:18:12.700] {http://*:443-12} Http[default, 12]
Accept-Encoding: gzip, deflate
[11-11-24 12:18:12.700] {http://*:443-12} Http[default, 12]
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
[11-11-24 12:18:12.700] {http://*:443-12} Http[default, 12] Connection:
keep-alive
[11-11-24 12:18:12.700] {http://*:443-12} Http[default, 12] Referer:
https://secure.libertyaccounts.com/logout.dox
[11-11-24 12:18:12.700] {http://*:443-12} Http[default, 12] Cookie:
__utma=41655487.4428091229059187700.1232275460.1322043958.1322132933.1434;
__utmz=41655487.1319792652.1396.134.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=accounting%20software;
__utmc=41655487; PID=-1; JSESSIONID=aaabHzVdRZSbFghz5qvpt
[11-11-24 12:18:12.700] {http://*:443-12} Http[default, 12]
Content-Type: application/x-www-form-urlencoded
[11-11-24 12:18:12.700] {http://*:443-12} Http[default, 12]
Content-Length: 89
[11-11-24 12:18:12.709] {http://*:443-12} allocate
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.713] {http://*:443-12} idle
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.713] {http://*:443-12} allocate
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.717] {http://*:443-12} idle
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.717] {http://*:443-12} allocate
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.731] {http://*:443-12} idle
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
axw001
PasswordCredentials[]
1
[11-11-24 12:18:12.731] {http://*:443-12} allocate
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.731] {http://*:443-12} idle
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.731] {http://*:443-12} allocate
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.732] {http://*:443-12} idle
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.733] {http://*:443-12} allocate
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.740] {http://*:443-12} idle
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
axw001
PasswordCredentials[]
1
[11-11-24 12:18:12.740] {http://*:443-12}
HttpServletRequestImpl[HttpRequest[default, 12]] axw001 is in role: user
[11-11-24 12:18:12.740] {http://*:443-12} allocate
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.741] {http://*:443-12} idle
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.741] {http://*:443-12} allocate
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.742] {http://*:443-12} idle
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.742] {http://*:443-12} allocate
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
[11-11-24 12:18:12.744] {http://*:443-12} idle
ManagedPoolItem[jdbc/jaffa-gp,242,ManagedConnectionImpl]
axw001
PasswordCredentials[]
1
[11-11-24 12:18:12.745] {http://*:443-12}
FormLoginServlet[WebApp[production/webapp/default/ROOT]] login axw001
using FormLogin[]
[11-11-24 12:18:12.745] {http://*:443-12} old path:null query:null
j_uri:/loginSuccess.do
--
Alan Wright
Athene Systems
tel 0845 230 9803
Athene Systems Limited
Registered Office:
Shieling House
Invincible Road
Farnborough
GU14 7QU
Registered in England and Wales No. 3156080
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest