On Fri, Apr 25, 2008 at 5:24 AM, Dalys Sebastian <[EMAIL PROTECTED]>
wrote:

> Hi everyone,
>
> Could you please give some help on how I can configure Tomcat to embed
> Tuscany. I could
> not find documentation for this, although this seems to be a feature
> that's already
> available.
>
> I would like Tuscany runtime to be part of Tomcat while it starts up, so
> that the web
> applications deployed on Tomcat can share SCA services.
>
> Any help regarding this is most appreciated.
>
> Thanks,
> Dalys
>
>
It depends what you need but I think we may not support exactly what you
want today.

You can have multiple webapps deployed to Tomcat which use Tuscany and that
use each others SCA services by making remote calls to the service
endpoints, but each webapp embeds its own Tuscany runtime and is a separate
SCA domain and you can't wire between components in different webapps. A
couple of times in the past we've started work on deeper intergation but
right now thats in a state of flux and not very useable, all the work
ongoing about work manager and distributed domains will hopefully improve
things.

As a step to there one thing you can do with the latest code is to add
Tuscany as a Tomcat shared library so you don't need to include all the
Tuscany jars in each webapp. To do that download the latest snapshot
distribution at
http://people.apache.org/repo/m2-snapshot-repository/org/apache/tuscany/sca/tuscany-distribution/2.0-incubating-SNAPSHOT/

Unzip that somewhere and in the conf/catalina.properties file in your Tomcat
install add or update the sharedLoader property to point to the Tuscany
distribution, eg:

shared.loader=/Tuscany/Distros/tuscany-sca-2.0-incubating-SNAPSHOT/lib/*.jar

With that you then don't need to include any of the Tuscany jars within each
webapp, if youre building your webapps with Maven just set any
<dependencies> for Tuscany to have <scope>provided</scope>.

Does that help at all? A lot of the Tuscany developers are interested in
this area so if you can say more about what you'd like it may get done for
you quite quickly.

   ...ant

Reply via email to