tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Viatcheslav Kuravskiy <kuravs...@googlemail.com>
Subject SCA and JSP/Servlet
Date Thu, 18 Jun 2009 08:20:32 GMT
I've deployed Tuscany project at Tomcat. With this code I can start 
SCA-runtime from jsp-page:


<%@ page import="org.apache.tuscany.sca.host.embedded.SCADomain"%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
     SCADomain scaDomain = (SCADomain) 
application.getAttribute("org.apache.tuscany.sca.SCADomain");
	TestService service = 
(TestService)scaDomain.getService(TestService.class, "TestComponent");
%>


How can I use this service in other jsp-pages and servlets without 
repeating this code?
How SCA-runtime can be started automatically with Tomcat?


Viatcheslav.

Mime
View raw message