Hi all:
I'm trying to develop a policy module that need to visit database and rmi
services, the database configuration and the rmi service has been initialized
by the TuscanyContextListener .
I know that the developers can get a reference to the SCADomain in their JSP
or HttpServlet just like the following code snippet:
SCADomain domain = (SCADomain)
application.getAttribute("org.apache.tuscany.sca.SCADomain");
My question is how can I get the ServletContext in the policy? The method of
interceptor ' Message invoke(Message msg) ' has no information about that.
Thanks.
2011-07-11
fzhong