Changing context(tool.session) object

Sheldon Ross <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.user
Message-ID <[email protected]>
I have used session tools before, but normally I can use the tool I put in session. 
In this case, I want to overwrite the tool, and keep it across the session, is there a way to do this?

ex: TurbineResources prop

tool.session.myObj = org.myapp.taglibs.Obj


Code:

Obj obj = (Obj)context.get("myObj");
obj = new Obj();

This doesn't seem to work because it doesn't actually change the session's reference? 
Or am I doing something wrong. Is there a better way to keep an object persistent in a session?

Thanks alot,

Sheldon Ross

_________________________________________________________________
Windows Live™ Hotmail®:…more than just e-mail. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_explore_012009
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.