You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by fzhong <fz...@travelsky.com> on 2011/07/11 07:25:46 UTC
How can I get the SCADomain refererce in a polciy module?
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