8 Apr
2009
8 Apr
'09
9:21 a.m.
Paul Libbrecht wrote:
Le 03-avr.-09 à 17:49, Sergiu Dumitriu a écrit :
do I have a possibility for a plugin to access the classes of another webapp? Can this other webapp maybe offer some services shareable to others? (JNDI?)
Can you look at ServletContext#getContext(String)?
Right, that would work, along with the crossContext attribute of the configuration of tomcat.
But, erm, dumb question, how can I get the ServletContext? I found how to get the request and response but not the servlets or context yet.
getRequest().getSession().getServletContext() -- Sergiu Dumitriu http://purl.org/net/sergiu/