Bryan, Ciaran <ciaran.bryan <at> logicacmg.com> writes:

> Does anyone know if it is possible from an
> axis webapp to invoke on a another tomcat servlet ? Can I not get access
> because classloaders are different perhaps ?
> 
>  
> 

If you were to deploy your web service *within* your other web app, then it is
very easy to get access to the servlet context:

HttpServlet servlet = (HttpServlet) 
MessageContext.getCurrentContext().getProperty(
org.apache.axis.transport.http.HTTPConstants.MC_HTTP_SERVLET);

ServletContext context = servlet.getServletContext();

HTH,
aaron

Reply via email to