tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Fiol BonnĂ­n <fiol.bon...@terra.es>
Subject Re: Sharing among session of ONE application
Date Tue, 13 Jan 2004 21:05:33 GMT

> So, that should mean that all I really have to do is defined the information in instance
variables.  Right?
>  
>

There is however an important risk related to this approach.

AFAICT, you are not guaranteed that there is a SINGLE instance of each 
servlet. It will be implementation-dependent.

 So, either going for "static" and not instance variables, or following 
Filip's or Yoav's advice are your best bets.

Antonio Fiol

Mime
View raw message