You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by ant elder <an...@gmail.com> on 2009/06/15 12:20:26 UTC

Re: svn commit: r779778 - in /tuscany/java/sca/distribution/tomcat: tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/ tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/ tomcat-war/src/main/webapp/

On Thu, May 28, 2009 at 10:24 PM, <rf...@apache.org> wrote:
> Author: rfeng
> Date: Thu May 28 21:24:41 2009
> New Revision: 779778
>
> URL: http://svn.apache.org/viewvc?rev=779778&view=rev
> Log:
> Add a checkbox on the jsp to configure if Tuscany is shared or isolated by the webapps
>

What is the use case for this? I'm wondering if we need it now that
there is a domain shared across the Tomcat instance so those need to
share Tuscany and we've now support for webapps to embed their own
copy of Tuscany when they don't want to shared the server version.

  ...ant

Re: svn commit: r779778 - in /tuscany/java/sca/distribution/tomcat: tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/ tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/ tomcat-war/src/main/webapp/

Posted by Raymond Feng <en...@gmail.com>.
Sure, I'm fine to change the default to be "shared".

--------------------------------------------------
From: "ant elder" <an...@apache.org>
Sent: Monday, June 15, 2009 11:14 AM
To: <de...@tuscany.apache.org>
Subject: Re: svn commit: r779778 - in /tuscany/java/sca/distribution/tomcat: 
tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/ 
tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/ 
tomcat-war/src/main/webapp/

> On Mon, Jun 15, 2009 at 6:09 PM, Raymond Feng<en...@gmail.com> wrote:
>> The 2nd option removes the duplication of Tuscany jars and the 
>> requirement
>> of setting up the web.xml. It makes the webapp packaging simpler. I think
>> it's worth to keep that.
>>
>
> Fair enough, could I flip it around though so the default is to have
> the runtime shared as I think the main use of this deep integration
> approach is to share it and i can't tell you how many times now i've
> forgotten to tick the box and then gotten confused when things don't
> run like i'm expecting and can't work out why.
>
>   ...ant 


Re: svn commit: r779778 - in /tuscany/java/sca/distribution/tomcat: tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/ tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/ tomcat-war/src/main/webapp/

Posted by ant elder <an...@apache.org>.
On Mon, Jun 15, 2009 at 6:09 PM, Raymond Feng<en...@gmail.com> wrote:
> The 2nd option removes the duplication of Tuscany jars and the requirement
> of setting up the web.xml. It makes the webapp packaging simpler. I think
> it's worth to keep that.
>

Fair enough, could I flip it around though so the default is to have
the runtime shared as I think the main use of this deep integration
approach is to share it and i can't tell you how many times now i've
forgotten to tick the box and then gotten confused when things don't
run like i'm expecting and can't work out why.

   ...ant

Re: svn commit: r779778 - in /tuscany/java/sca/distribution/tomcat: tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/ tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/ tomcat-war/src/main/webapp/

Posted by Raymond Feng <en...@gmail.com>.
The 2nd option removes the duplication of Tuscany jars and the requirement 
of setting up the web.xml. It makes the webapp packaging simpler. I think 
it's worth to keep that.

Thanks,
Raymond

--------------------------------------------------
From: "ant elder" <an...@apache.org>
Sent: Monday, June 15, 2009 9:07 AM
To: <de...@tuscany.apache.org>
Subject: Re: svn commit: r779778 - in /tuscany/java/sca/distribution/tomcat: 
tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/ 
tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/ 
tomcat-war/src/main/webapp/

> Yes i understand what it does, but what is the reasons you'd want to
> do this, and wouldn't it be enough now to have it that if you don't
> want to share the sever classes then you include your own in the
> individual webapp?
>
>  ...ant
>
> On Mon, Jun 15, 2009 at 4:59 PM, Raymond Feng<en...@gmail.com> wrote:
>> This is used to control if the Tuscany runtime classes are shared by
>> multiple applications from the classloading perspective. Sharing the 
>> classes
>> doesn't prevent the nodes from being part of different SCA domains. On 
>> the
>> other hand, web applications that don't share the Tuscany classes can 
>> join
>> the same SCA domain too.
>>
>> Unmarking the "share" flag allows each web application has its own 
>> instances
>> of the Tuscany classes. It's the pretty much the same as packaging all 
>> the
>> Tuscany jars in the web application. This option removes the duplication 
>> of
>> Tuscany jars and the requirement of setting up the web.xml.
>>
>> Basically, there are three options:
>> 1) Multiple web applications share the same Tuscany classes
>> 2) Multiple web applications load their own instances of Tuscany classes
>> from the same physical location
>> 3) Each web application loads their own instances of Tuscany classes from
>> their own Tuscany jars
>>
>> Thanks,
>> Raymond
>> --------------------------------------------------
>> From: "ant elder" <an...@gmail.com>
>> Sent: Monday, June 15, 2009 3:20 AM
>> To: <de...@tuscany.apache.org>
>> Subject: Re: svn commit: r779778 - in 
>> /tuscany/java/sca/distribution/tomcat:
>> tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/
>> tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/
>> tomcat-war/src/main/webapp/
>>
>>> On Thu, May 28, 2009 at 10:24 PM, <rf...@apache.org> wrote:
>>>>
>>>> Author: rfeng
>>>> Date: Thu May 28 21:24:41 2009
>>>> New Revision: 779778
>>>>
>>>> URL: http://svn.apache.org/viewvc?rev=779778&view=rev
>>>> Log:
>>>> Add a checkbox on the jsp to configure if Tuscany is shared or isolated
>>>> by the webapps
>>>>
>>>
>>> What is the use case for this? I'm wondering if we need it now that
>>> there is a domain shared across the Tomcat instance so those need to
>>> share Tuscany and we've now support for webapps to embed their own
>>> copy of Tuscany when they don't want to shared the server version.
>>>
>>>  ...ant
>>
>> 

Re: svn commit: r779778 - in /tuscany/java/sca/distribution/tomcat: tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/ tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/ tomcat-war/src/main/webapp/

Posted by ant elder <an...@apache.org>.
Yes i understand what it does, but what is the reasons you'd want to
do this, and wouldn't it be enough now to have it that if you don't
want to share the sever classes then you include your own in the
individual webapp?

  ...ant

On Mon, Jun 15, 2009 at 4:59 PM, Raymond Feng<en...@gmail.com> wrote:
> This is used to control if the Tuscany runtime classes are shared by
> multiple applications from the classloading perspective. Sharing the classes
> doesn't prevent the nodes from being part of different SCA domains. On the
> other hand, web applications that don't share the Tuscany classes can join
> the same SCA domain too.
>
> Unmarking the "share" flag allows each web application has its own instances
> of the Tuscany classes. It's the pretty much the same as packaging all the
> Tuscany jars in the web application. This option removes the duplication of
> Tuscany jars and the requirement of setting up the web.xml.
>
> Basically, there are three options:
> 1) Multiple web applications share the same Tuscany classes
> 2) Multiple web applications load their own instances of Tuscany classes
> from the same physical location
> 3) Each web application loads their own instances of Tuscany classes from
> their own Tuscany jars
>
> Thanks,
> Raymond
> --------------------------------------------------
> From: "ant elder" <an...@gmail.com>
> Sent: Monday, June 15, 2009 3:20 AM
> To: <de...@tuscany.apache.org>
> Subject: Re: svn commit: r779778 - in /tuscany/java/sca/distribution/tomcat:
> tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/
> tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/
> tomcat-war/src/main/webapp/
>
>> On Thu, May 28, 2009 at 10:24 PM, <rf...@apache.org> wrote:
>>>
>>> Author: rfeng
>>> Date: Thu May 28 21:24:41 2009
>>> New Revision: 779778
>>>
>>> URL: http://svn.apache.org/viewvc?rev=779778&view=rev
>>> Log:
>>> Add a checkbox on the jsp to configure if Tuscany is shared or isolated
>>> by the webapps
>>>
>>
>> What is the use case for this? I'm wondering if we need it now that
>> there is a domain shared across the Tomcat instance so those need to
>> share Tuscany and we've now support for webapps to embed their own
>> copy of Tuscany when they don't want to shared the server version.
>>
>>  ...ant
>
>

Re: svn commit: r779778 - in /tuscany/java/sca/distribution/tomcat: tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/ tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/ tomcat-war/src/main/webapp/

Posted by Raymond Feng <en...@gmail.com>.
This is used to control if the Tuscany runtime classes are shared by 
multiple applications from the classloading perspective. Sharing the classes 
doesn't prevent the nodes from being part of different SCA domains. On the 
other hand, web applications that don't share the Tuscany classes can join 
the same SCA domain too.

Unmarking the "share" flag allows each web application has its own instances 
of the Tuscany classes. It's the pretty much the same as packaging all the 
Tuscany jars in the web application. This option removes the duplication of 
Tuscany jars and the requirement of setting up the web.xml.

Basically, there are three options:
1) Multiple web applications share the same Tuscany classes
2) Multiple web applications load their own instances of Tuscany classes 
from the same physical location
3) Each web application loads their own instances of Tuscany classes from 
their own Tuscany jars

Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <an...@gmail.com>
Sent: Monday, June 15, 2009 3:20 AM
To: <de...@tuscany.apache.org>
Subject: Re: svn commit: r779778 - in /tuscany/java/sca/distribution/tomcat: 
tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/ 
tomcat-servlet/src/main/java/org/apache/tuscany/sca/war/ 
tomcat-war/src/main/webapp/

> On Thu, May 28, 2009 at 10:24 PM, <rf...@apache.org> wrote:
>> Author: rfeng
>> Date: Thu May 28 21:24:41 2009
>> New Revision: 779778
>>
>> URL: http://svn.apache.org/viewvc?rev=779778&view=rev
>> Log:
>> Add a checkbox on the jsp to configure if Tuscany is shared or isolated 
>> by the webapps
>>
>
> What is the use case for this? I'm wondering if we need it now that
> there is a domain shared across the Tomcat instance so those need to
> share Tuscany and we've now support for webapps to embed their own
> copy of Tuscany when they don't want to shared the server version.
>
>  ...ant