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]



Reply via email to