Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Sharing among session of ONE application

Antonio Fiol Bonnín

2004-01-13

Replies:


> 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

Attachment: smime.p7s
©2008 junlu.com - Jax Systems, LLC, U.S.A.