Hi again,

   I have a Index class which declares another object as a private instance
variable:

     private User user = new User();

This object will hold some attributes of the user. It's constructor will
populate it with default values. 

Index template has the ability to update the attributes inside "user"
object. 

Issue is that all other threads will see the updated attributes, and not the
default ones i was expecting. It looks like the same instance of "user" is
shared across all application requests ( user constructor is invoked only
once). 
Shouldn't Tap clean all variables every time a new request is serviced?

Clearly I'm missing something here. 

Bogdan. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/resource-shared-accross-threads-tp4370064p4370064.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to