On Sep 22, 2005, at 12:20 PM, Hensley, Richard wrote:

You can cheat and make your visit not serializable. That will cause an
exception during the write to the file, and tomcat will abandon the effort
for the session.

Depending on how the Tomcat code handles the exception, couldn't it be expensive? IIRC[0], try {} and catch(){} are effectively 'free' until an Exception is created (which generates and stores a snapshot of the stack). If they simply catch() and display the error, it might not be so bad, but if they catch(){} and then instantiate a new exception and re-throw it could be rather expensive.

I don't know that I'd want every request to generate a exception... even if it is pretty efficient.

[0] I may be making this up, as my understanding of the JVM is limited.

Cory Watson
http://www.onemogin.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to