[PJUG Javamail] Is there a problem of name collision with session attributes in Tomcat??

Rob Tanner rtanner at linfield.edu
Thu Sep 4 13:07:10 EDT 2008


At least that's the only answer that makes sense.

I have 13 separate web applications running on Tomcat (v5.5.23) and I do 
runtime logging with log4j.  For each application, the log4j.properties 
file is in WEB-INF/classes and the properties file in each case 
specifies an appender path unique for each application.

But here's the problem.  When I look at the runtime.log for one 
application, see numbers of instances of log entries from one of the 
other applications.  I am using Category.getInstance() logging.  
Individual applications may have a number of servlets but I get the 
initParameters only once and setup log4j only once and then store 
everything in session attributes.

I am consistent in all my applications in storing the Category instance 
in a session attribute called "sess.cat".  What I'm wondering is whether 
that attribute is unique for each session or whether it's global so that 
its contents is whatever it was last set to by any one of the 13 
applications.

-- Rob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pjug.org/pipermail/javamail/attachments/20080904/f2138948/attachment.html 


More information about the Javamail mailing list