SCA Java Web Applications (TUSCANY) edited by ant
Page:
http://cwiki.apache.org/confluence/display/TUSCANY/SCA+Java+Web+Applications
Changes:
http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=106453&originalVersion=2&revisedVersion=3
Content:
---------------------------------------------------------------------
{section:border=false}
{column:width=15%}
{include: SCA Java Subproject Menu}
{include: Java SCA Menu New}
{column}
{column:width=85%}
h3. Using Tuscany in JEE Web Applications
This page describes how to use Tuscany in JEE Web Applications.
All the Tuscany jar's and dependencies must be included in the WEB-INF/lib
folder. Some configuration in the web.xml file is required - a ContextListener
is neededed when using non-HTTP based SCA services so that the Tuscany runtime
is started when the Web Application starts, a Servlet Filter is required when
using HTTP based SCA services. The simplest approach is to always include both
ContextListener and Filter definitions in the web.xml so that everything works
for all SCA configurations.
The following show the XML snippets show the necessary definitions for the
web.xml file:
{code}
<listener>
<listener-class>org.apache.tuscany.sca.host.webapp.TuscanyContextListener</listener-class>
</listener>
{code}
{code}
<filter>
<filter-name>tuscany</filter-name>
<filter-class>org.apache.tuscany.sca.host.webapp.TuscanyServletFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>tuscany</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
{code}
{column}
{section}
---------------------------------------------------------------------
CONFLUENCE INFORMATION
This message is automatically generated by Confluence
Unsubscribe or edit your notifications preferences
http://cwiki.apache.org/confluence/users/viewnotifications.action
If you think it was sent incorrectly contact one of the administrators
http://cwiki.apache.org/confluence/administrators.action
If you want more information on Confluence, or have a bug to report see
http://www.atlassian.com/software/confluence