You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Dalys Sebastian <se...@yahoo.com> on 2008/04/25 06:24:05 UTC

Documentation for Tuscany integration with Tomcat

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


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: Documentation for Tuscany integration with Tomcat

Posted by Dalys Sebastian <se...@yahoo.com>.
Hi Ant,

Thank you very much for taking it up and starting development with it. I read through
your development mailinglist as well.

Thanks,
Dalys
--- ant elder <an...@apache.org> wrote:

> On Sat, Apr 26, 2008 at 8:35 PM, Dalys Sebastian <se...@yahoo.com>
> wrote:
> 
> <snip>
> 
> Would this type of a feature is something that you would choose
> > to put as part of your roadmap?
> >
> >
> Yes were very interested in getting this working, eg see the current on
> going discussion - http://apache.markmail.org/message/2i6gtkveapk3n4nr
> 
> Please feel welcome to come participate and help make sure it does what you
> need.
> 
>    ...ant
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: Documentation for Tuscany integration with Tomcat

Posted by ant elder <an...@apache.org>.
On Sat, Apr 26, 2008 at 8:35 PM, Dalys Sebastian <se...@yahoo.com>
wrote:

<snip>

Would this type of a feature is something that you would choose
> to put as part of your roadmap?
>
>
Yes were very interested in getting this working, eg see the current on
going discussion - http://apache.markmail.org/message/2i6gtkveapk3n4nr

Please feel welcome to come participate and help make sure it does what you
need.

   ...ant

Re: Documentation for Tuscany integration with Tomcat

Posted by Dalys Sebastian <se...@yahoo.com>.
Hi Ant,

Thanka a lot for your answer. This itself was very helpful. The feature that I am really
looking forward in Tuscany is the one that you mentioned in the early part of your reply:

I have 2 applications deployed on Tomcat. One web application has some SCA services.
Suppose, one of them has some local (not remote) SCA services. Would Tuscany allow the
other web application to make use of it? I think this would be possible if the
application container boots up with a single Tuscany runtime and both applications use
the same Tuscany runtime. Would this type of a feature is something that you would choose
to put as part of your roadmap?

Thanks,
Dalys

--- ant elder <an...@gmail.com> wrote:

> On Fri, Apr 25, 2008 at 5:24 AM, Dalys Sebastian <se...@yahoo.com>
> 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
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: Documentation for Tuscany integration with Tomcat

Posted by ant elder <an...@gmail.com>.
On Fri, Apr 25, 2008 at 5:24 AM, Dalys Sebastian <se...@yahoo.com>
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