So an example of what Massimo is saying: Registry registry = (Registry) context.getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME); registry.getService(YourServiceInterface.class);
Where context is the ServletContext. regards, Peter ----- Original Message ----- From: "Massimo Lusetti" <mluse...@gmail.com> To: "Tapestry users" <users@tapestry.apache.org> Sent: Tuesday, 19 January, 2010 11:21:56 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Handling session expiry On Tue, Jan 19, 2010 at 10:15 AM, Klaus Kopruch <klaus.kopr...@materna.de> wrote: > > Thanks a lot! > > How can I access a T5 service from sessionDestroyed() ? As i said from my first reply get the Registry from the ServletContext, it is stored there under TapestryFilter.REGISTRY_CONTEXT_NAME Cheers -- Massimo http://meridio.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org