tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Augustinus <devi...@siulintao.net>
Subject Re: shared object cache
Date Sat, 29 Nov 2003 11:21:54 GMT

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:funkman@joedog.org]
>>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: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>    
>>
>
>
>
>
>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: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message