Re: Can composite namespace equal in different contribution?

2008-04-14 Thread Jean-Sebastien Delfino

Mike Edwards wrote:

Wang Feng wrote:

Hi all
I have a scenario like this.There are two contributions and each one 
contribution contains one composite which has the same namespace.  The 
namespace has been imported and exported on every contribution.
I am not sure this scenario is right or wrong,can anybody give me an 
advice?


Contribution metadata like below:
Contribution A   
http://www.osoa.org/xmlns/sca/1.0";

  targetNamespace="http://hello";
  xmlns:hello="http://hello";>
   
   http://hello"/>
   http://hello"/>
   

Contribution B   
http://www.osoa.org/xmlns/sca/1.0";

  targetNamespace="http://hello";
  xmlns:hello="http://hello";>
   
   http://hello"/>
   http://hello"/>
   


--
Wang Feng
2008-04-15

Wang Feng,

It is perfectly acceptable to use the same namespace for artifacts such 
as composites in multiple contributions.  Your example is just fine.


What you should not do is to have the same name for the same type of 
artifact in the same namespace, whereever they are placed - that is to 
invite trouble.  So names "composite1" and "composite2" are OK, but to 
have two composites named "composite1" is not wise, even if they are in 
separate contributions.



Yours,  Mike.



For examples of contributions that share a namespace, see the folders 
under sca/java/tutorial, many of the contributions in the tutorial share 
the same http://store namespace.


Hope this helps.
--
Jean-Sebastien

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Can composite namespace equal in different contribution?

2008-04-14 Thread Luciano Resende
Yes, I'd expect the stack overflow as we would keep delegating back
and forth for the import/export model resolvers. Please file a jira,
and let's work together to find a solution for this issue.

On Mon, Apr 14, 2008 at 10:39 PM, Wang Feng <[EMAIL PROTECTED]> wrote:
> Hi  Luciano
>
>  Thank you for your quick response.
>
>  When a contribution metadata contains a deployable composite but the 
> composite is not exist,
>  there will be recursive resolve the composite and will stack overflow.
>
>  I will create a jira and  put my testcase.
>
>  Thanks,
>  Wang Feng
>
>
>
>
>  On 2008-04-15,Luciano Resende <[EMAIL PROTECTED]> wrote:
>
>  >I'd say that the scenario is valid, but as mentioned in [1], we were
>  >not handling cycles very well in our import/export model resolvers.
>  >Are you experiencing a specific issue that I could try helping ?
>  >
>  >
>  >[1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg28147.html
>  >
>  >On Mon, Apr 14, 2008 at 8:14 PM, Wang Feng <[EMAIL PROTECTED]> wrote:
>  >> Hi all
>  >>  I have a scenario like this.There are two contributions and each one 
> contribution
>  >>  contains one composite which has the same namespace.  The namespace has 
> been
>  >>  imported and exported on every contribution.
>  >>  I am not sure this scenario is right or wrong,can anybody give me an 
> advice?
>  >>
>  >>  Contribution metadata like below:
>  >>  Contribution A
>  >>  http://www.osoa.org/xmlns/sca/1.0";
>  >>   targetNamespace="http://hello";
>  >>   xmlns:hello="http://hello";>
>  >>
>  >>http://hello"/>
>  >>http://hello"/>
>  >>  
>  >>
>  >>  Contribution B
>  >>  http://www.osoa.org/xmlns/sca/1.0";
>  >>   targetNamespace="http://hello";
>  >>   xmlns:hello="http://hello";>
>  >>
>  >>http://hello"/>
>  >>http://hello"/>
>  >>  
>  >>
>  >>  --
>  >>  Wang Feng
>  >>  2008-04-15
>  >>
>  >>
>  >>  -
>  >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >>  For additional commands, e-mail: [EMAIL PROTECTED]
>  >>
>  >>
>  >
>  >
>  >
>  >--
>  >Luciano Resende
>  >Apache Tuscany Committer
>  >http://people.apache.org/~lresende
>  >http://lresende.blogspot.com/
>  >
>  >-
>  >To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can composite namespace equal in different contribution?

2008-04-14 Thread Mike Edwards

Wang Feng wrote:

Hi all
I have a scenario like this.There are two contributions and each one contribution 
contains one composite which has the same namespace.  The namespace has been 
imported and exported on every contribution.

I am not sure this scenario is right or wrong,can anybody give me an advice?

Contribution metadata like below:   
Contribution A  
http://www.osoa.org/xmlns/sca/1.0";
  targetNamespace="http://hello";
  xmlns:hello="http://hello";>
   
   http://hello"/>
   http://hello"/>
   

Contribution B  
http://www.osoa.org/xmlns/sca/1.0";
  targetNamespace="http://hello";
  xmlns:hello="http://hello";>
   
   http://hello"/>
   http://hello"/>
   

--
Wang Feng
2008-04-15

Wang Feng,

It is perfectly acceptable to use the same namespace for artifacts such 
as composites in multiple contributions.  Your example is just fine.


What you should not do is to have the same name for the same type of 
artifact in the same namespace, whereever they are placed - that is to 
invite trouble.  So names "composite1" and "composite2" are OK, but to 
have two composites named "composite1" is not wise, even if they are in 
separate contributions.



Yours,  Mike.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Can composite namespace equal in different contribution?

2008-04-14 Thread Wang Feng
Hi  Luciano

Thank you for your quick response.

When a contribution metadata contains a deployable composite but the composite 
is not exist, 
there will be recursive resolve the composite and will stack overflow.

I will create a jira and  put my testcase.

Thanks,
Wang Feng


On 2008-04-15,Luciano Resende <[EMAIL PROTECTED]> wrote:

>I'd say that the scenario is valid, but as mentioned in [1], we were
>not handling cycles very well in our import/export model resolvers.
>Are you experiencing a specific issue that I could try helping ?
>
>
>[1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg28147.html
>
>On Mon, Apr 14, 2008 at 8:14 PM, Wang Feng <[EMAIL PROTECTED]> wrote:
>> Hi all
>>  I have a scenario like this.There are two contributions and each one 
>> contribution
>>  contains one composite which has the same namespace.  The namespace has been
>>  imported and exported on every contribution.
>>  I am not sure this scenario is right or wrong,can anybody give me an advice?
>>
>>  Contribution metadata like below:
>>  Contribution A
>>  http://www.osoa.org/xmlns/sca/1.0";
>>   targetNamespace="http://hello";
>>   xmlns:hello="http://hello";>
>>
>>http://hello"/>
>>http://hello"/>
>>  
>>
>>  Contribution B
>>  http://www.osoa.org/xmlns/sca/1.0";
>>   targetNamespace="http://hello";
>>   xmlns:hello="http://hello";>
>>
>>http://hello"/>
>>http://hello"/>
>>  
>>
>>  --
>>  Wang Feng
>>  2008-04-15
>>
>>
>>  -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
>-- 
>Luciano Resende
>Apache Tuscany Committer
>http://people.apache.org/~lresende
>http://lresende.blogspot.com/
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can composite namespace equal in different contribution?

2008-04-14 Thread Luciano Resende
I'd say that the scenario is valid, but as mentioned in [1], we were
not handling cycles very well in our import/export model resolvers.
Are you experiencing a specific issue that I could try helping ?


[1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg28147.html

On Mon, Apr 14, 2008 at 8:14 PM, Wang Feng <[EMAIL PROTECTED]> wrote:
> Hi all
>  I have a scenario like this.There are two contributions and each one 
> contribution
>  contains one composite which has the same namespace.  The namespace has been
>  imported and exported on every contribution.
>  I am not sure this scenario is right or wrong,can anybody give me an advice?
>
>  Contribution metadata like below:
>  Contribution A
>  http://www.osoa.org/xmlns/sca/1.0";
>   targetNamespace="http://hello";
>   xmlns:hello="http://hello";>
>
>http://hello"/>
>http://hello"/>
>  
>
>  Contribution B
>  http://www.osoa.org/xmlns/sca/1.0";
>   targetNamespace="http://hello";
>   xmlns:hello="http://hello";>
>
>http://hello"/>
>http://hello"/>
>  
>
>  --
>  Wang Feng
>  2008-04-15
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]