I use a ServletContextListener to setup a bunch of java.util.TimerTask
routines that run hourly, importing some files. There is a new requirement
that fits this same pattern but it needs to access the Jetspeed UserManager
and GroupManager. I do this in other parts of our app but only from
Portlets. I use the PortletContext to get the global UserManager and it
works perfectly.

My issue is that I don't have access to PortletConfig or PortletContext from
the ServletContextListenener.

Where would the best place to be to create my TimerTask and have access to
the PortletContext. I've seen Liferay has a PortletContextListener that can
be used to replace the ServletContextListener but I don't see the
same/similar thing for Jetspeed.

Or, is there some way to get a handle of the PortletConfig/PortletContext
from within my current ServletContextListener?

--
Michael Binette

Reply via email to