tnx a million guys.. I'm working on it now, and it looks as if it's all going to work out fine! :-)


Shapira, Yoav wrote:


Howdy,
Ahh yes, shows how much JSP writing I do ;)

I didn't see servlet context is necessarily better than a static manager
class, but now that you ask, I'll give two reasons:
- Less code for you to write, always good
- Much simpler handling of application restart/reload

Yoav Shapira
Millennium ChemInformatics




-----Original Message-----
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 9:10 AM
To: Tomcat Users List
Subject: Re: shared object cache

Warning! In a JSP ...

 pageContext.setAttribute(...)
should be
 application.setAttribute(...)
or
 pageContext.setAttribute(..., PageContext.APPLICATION_SCOPE)

-Tim

Shapira, Yoav wrote:



Howdy,
If you're using servlets,
getServletContext().setAttribute("myPersistenceManager",
myPersistenceManager) would do the trick.  If you're using JSPs, it's
pageContext.setAttribute(...).

The WeakHashMap is one approach: not one I'd use initially, but only


if


you run into issues with a more conservative approach.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to