You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Jean-Sebastien Delfino <js...@apache.org> on 2007/06/06 22:51:53 UTC

What's an SCA domain base URI? was: Servlet path change?

[snip]

> That's where the SCA domain configuration of base URIs for 
> hierarchical URI scheme comes to play. The SCA spec says: "An SCA 
> domain should define a base URI for each hierarchical URI scheme on 
> which it intends to provide services".
>
> Let's assume we have two bindings: binding.x and binding.y. The scheme 
> (protocol) is "ftp" for binding.x and "http" for binding.y.
>
> <component name="C1">
> <service name="FTPService">
>        <binding.x .../>
> </service>
> <service name="HTTPService">
>        <binding.y .../>
> </service>
> </component>
>
> If the SCA domain defines the mapping:
>
> binding.x --> ftp://ftp.example.com/public
> binding.y --> http://www.example.com
>
> Then the computedURI for binding.x and binding.y would be:
>
> binding.x: ftp://ftp.example.com/public/C1/FTPService
> binding.y http://www.example.com/C1/HTTPService
>
>

I took another look at the spec, and you're correct this is what it 
says, but now I am not sure I understand anymore how this can really 
work... Well, maybe I do understand some of it, but I'd like to explore 
and challenge it a bit here :)

I have a simple use case in mind:
- my SCA domain includes components running on two servers (an SCA 
domain is a administrative domain so I'm going to assume that I have at 
least 2 servers in that domain)
- the host names of my two servers are servera and serverb
- my components provide web services, over the HTTP protocol
- what should my SCA domain URI look like? http:// and then what? just 
http://? how is this domain URI useful here?

Possible answers:
- configure my domain URI to www.mydomain.com and have my two servers 
appear as one... under www.mydomain.com/x and www.mydomain.com/y?
- conclude that domain URI is not so useful after all?
- another idea?


Thoughts?

-- 
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: What's an SCA domain base URI? was: Servlet path change?

Posted by Raymond Feng <en...@gmail.com>.
That's right. Basically the binding provider needs to figure out which 
scheme to use for a paticular service or reference.

Thanks,
Raymond

----- Original Message ----- 
From: "Simon Laws" <si...@googlemail.com>
To: <tu...@ws.apache.org>; <an...@gmail.com>
Sent: Thursday, June 07, 2007 2:28 AM
Subject: Re: What's an SCA domain base URI? was: Servlet path change?


> Also, for example, the Web Service Binding specification adds extra, WSDL
> specific, endpoint URI resolution rules which we need to factor in.
>
>
> Simon
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: What's an SCA domain base URI? was: Servlet path change?

Posted by Simon Laws <si...@googlemail.com>.
Also, for example, the Web Service Binding specification adds extra, WSDL
specific, endpoint URI resolution rules which we need to factor in.


Simon

Re: What's an SCA domain base URI? was: Servlet path change?

Posted by ant elder <an...@apache.org>.
On 6/6/07, Jean-Sebastien Delfino <js...@apache.org> wrote:
>
> [snip]
>
> > That's where the SCA domain configuration of base URIs for
> > hierarchical URI scheme comes to play. The SCA spec says: "An SCA
> > domain should define a base URI for each hierarchical URI scheme on
> > which it intends to provide services".
> >
> > Let's assume we have two bindings: binding.x and binding.y. The scheme
> > (protocol) is "ftp" for binding.x and "http" for binding.y.
> >
> > <component name="C1">
> > <service name="FTPService">
> >        <binding.x .../>
> > </service>
> > <service name="HTTPService">
> >        <binding.y .../>
> > </service>
> > </component>
> >
> > If the SCA domain defines the mapping:
> >
> > binding.x --> ftp://ftp.example.com/public
> > binding.y --> http://www.example.com
> >
> > Then the computedURI for binding.x and binding.y would be:
> >
> > binding.x: ftp://ftp.example.com/public/C1/FTPService
> > binding.y http://www.example.com/C1/HTTPService
> >
> >
>
> I took another look at the spec, and you're correct this is what it
> says, but now I am not sure I understand anymore how this can really
> work... Well, maybe I do understand some of it, but I'd like to explore
> and challenge it a bit here :)
>
> I have a simple use case in mind:
> - my SCA domain includes components running on two servers (an SCA
> domain is a administrative domain so I'm going to assume that I have at
> least 2 servers in that domain)
> - the host names of my two servers are servera and serverb
> - my components provide web services, over the HTTP protocol
> - what should my SCA domain URI look like? http:// and then what? just
> http://? how is this domain URI useful here?
>
> Possible answers:
> - configure my domain URI to www.mydomain.com and have my two servers
> appear as one... under www.mydomain.com/x and www.mydomain.com/y?
> - conclude that domain URI is not so useful after all?
> - another idea?


Just throwing this one in here as I've not seen it mentioned yet anywhere on
all the threads about this, there's also section 1.7.2.3 of the assembly
spec to consider. So for example, a WS binding also needs to be able to
control if its an http or https url.

   ...ant

Re: What's an SCA domain base URI? was: Servlet path change?

Posted by Simon Laws <si...@googlemail.com>.
I also think the assembly spec is a little deficient in this area. I don't
think it's description of the Base Domain URI at line 2357 chimes well with
the notion that an SCA Domain may be represented across a number of runtime
nodes at line 2765.

While we might assume from how it stands that there is only one URL for the
domain, we can create completely different URLs for each binding/scheme.

What I would expect it be saying is that the base URI depends on the
potentially distributed nodes that make up the domain. Regardless of DNS
settings (which I wouldn't expect people to be forced to fiddle with just to
get SCA working) there is nothing stopping people missing out DNS and going
straight for IP addresses in the URLs in which case we have to deal with
different binding URLs for different nodes.

Simon

Re: What's an SCA domain base URI? was: Servlet path change?

Posted by Jean-Sebastien Delfino <js...@apache.org>.
[snip]
scabooz wrote:
>
> Why do we think that a Domain base URI is physically addressable and
> known to a DNS?

 From the assembly spec:

2357 Base Domain URI for a scheme. An SCA domain should define a base 
URI for each
2358 hierarchical URI scheme on which it intends to provide services.
2359 For example: the HTTP and HTTPS schemes would each have their own 
base URI defined for the
2360 domain. An example of a scheme that is not hierarchical, and 
therefore will have no base URI is
2361 the “jms:” scheme.


> I see it as a level of indirection used to address
> "things" in an assembly. These URIs would need to be mapped (by
> binding components to runtimes at deployment time) to something concrete.
>

Are http:// and https:// concrete enough? :)

-- 
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: What's an SCA domain base URI? was: Servlet path change?

Posted by scabooz <sc...@gmail.com>.
Why do we think that a Domain base URI is physically addressable and
known to a DNS?  I see it as a level of indirection used to address
"things" in an assembly.  These URIs would need to be mapped (by
binding components to runtimes at deployment time) to something concrete.

Contributions are assigned a URI when installed.  The Domain's base URI
could be used to construct those URIs.

Technically, it should also be possible to target a
reference using a fully qualified URI that is based on the domain URI. The
hosting runtime might be known in an IP network by a completely
different URI.  Think virtual hosts in web-app land as an example.

When adding a composite to a domain, someone will have to indicate
which domain...again the domain base URI comes into play.

There are very simple scenarios where the domain base URI
could be exactly the same as the physical URI.

Dave

----- Original Message ----- 
From: "Raymond Feng" <en...@gmail.com>
To: <tu...@ws.apache.org>
Sent: Wednesday, June 06, 2007 5:04 PM
Subject: Re: What's an SCA domain base URI? was: Servlet path change?


> Hi,
>
> I think the base URI for a scheme cannot be global to a SCA domain. As you 
> said, that would be useless. The spec needs some clarifications here.
>
> We might have two options here:
>
> 1) The SCA domain defines the base URI pattern such as http://$host:8080/. 
> And $host will be replaced by the running server name or address.
> 2) The baseURI is defined per runtime/server 
> (http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg18613.html).
>
> Thanks,
> Raymond
>
> ----- Original Message ----- 
> From: "Jean-Sebastien Delfino" <js...@apache.org>
> To: <tu...@ws.apache.org>
> Sent: Wednesday, June 06, 2007 1:51 PM
> Subject: What's an SCA domain base URI? was: Servlet path change?
>
>
>> [snip]
>>
>>> That's where the SCA domain configuration of base URIs for hierarchical 
>>> URI scheme comes to play. The SCA spec says: "An SCA domain should 
>>> define a base URI for each hierarchical URI scheme on which it intends 
>>> to provide services".
>>>
>>> Let's assume we have two bindings: binding.x and binding.y. The scheme 
>>> (protocol) is "ftp" for binding.x and "http" for binding.y.
>>>
>>> <component name="C1">
>>> <service name="FTPService">
>>>        <binding.x .../>
>>> </service>
>>> <service name="HTTPService">
>>>        <binding.y .../>
>>> </service>
>>> </component>
>>>
>>> If the SCA domain defines the mapping:
>>>
>>> binding.x --> ftp://ftp.example.com/public
>>> binding.y --> http://www.example.com
>>>
>>> Then the computedURI for binding.x and binding.y would be:
>>>
>>> binding.x: ftp://ftp.example.com/public/C1/FTPService
>>> binding.y http://www.example.com/C1/HTTPService
>>>
>>>
>>
>> I took another look at the spec, and you're correct this is what it says, 
>> but now I am not sure I understand anymore how this can really work... 
>> Well, maybe I do understand some of it, but I'd like to explore and 
>> challenge it a bit here :)
>>
>> I have a simple use case in mind:
>> - my SCA domain includes components running on two servers (an SCA domain 
>> is a administrative domain so I'm going to assume that I have at least 2 
>> servers in that domain)
>> - the host names of my two servers are servera and serverb
>> - my components provide web services, over the HTTP protocol
>> - what should my SCA domain URI look like? http:// and then what? just 
>> http://? how is this domain URI useful here?
>>
>> Possible answers:
>> - configure my domain URI to www.mydomain.com and have my two servers 
>> appear as one... under www.mydomain.com/x and www.mydomain.com/y?
>> - conclude that domain URI is not so useful after all?
>> - another idea?
>>
>>
>> Thoughts?
>>
>> -- 
>> Jean-Sebastien
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: What's an SCA domain base URI? was: Servlet path change?

Posted by Raymond Feng <en...@gmail.com>.
Hi,

I think the base URI for a scheme cannot be global to a SCA domain. As you 
said, that would be useless. The spec needs some clarifications here.

We might have two options here:

1) The SCA domain defines the base URI pattern such as http://$host:8080/. 
And $host will be replaced by the running server name or address.
2) The baseURI is defined per runtime/server 
(http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg18613.html).

Thanks,
Raymond

----- Original Message ----- 
From: "Jean-Sebastien Delfino" <js...@apache.org>
To: <tu...@ws.apache.org>
Sent: Wednesday, June 06, 2007 1:51 PM
Subject: What's an SCA domain base URI? was: Servlet path change?


> [snip]
>
>> That's where the SCA domain configuration of base URIs for hierarchical 
>> URI scheme comes to play. The SCA spec says: "An SCA domain should define 
>> a base URI for each hierarchical URI scheme on which it intends to 
>> provide services".
>>
>> Let's assume we have two bindings: binding.x and binding.y. The scheme 
>> (protocol) is "ftp" for binding.x and "http" for binding.y.
>>
>> <component name="C1">
>> <service name="FTPService">
>>        <binding.x .../>
>> </service>
>> <service name="HTTPService">
>>        <binding.y .../>
>> </service>
>> </component>
>>
>> If the SCA domain defines the mapping:
>>
>> binding.x --> ftp://ftp.example.com/public
>> binding.y --> http://www.example.com
>>
>> Then the computedURI for binding.x and binding.y would be:
>>
>> binding.x: ftp://ftp.example.com/public/C1/FTPService
>> binding.y http://www.example.com/C1/HTTPService
>>
>>
>
> I took another look at the spec, and you're correct this is what it says, 
> but now I am not sure I understand anymore how this can really work... 
> Well, maybe I do understand some of it, but I'd like to explore and 
> challenge it a bit here :)
>
> I have a simple use case in mind:
> - my SCA domain includes components running on two servers (an SCA domain 
> is a administrative domain so I'm going to assume that I have at least 2 
> servers in that domain)
> - the host names of my two servers are servera and serverb
> - my components provide web services, over the HTTP protocol
> - what should my SCA domain URI look like? http:// and then what? just 
> http://? how is this domain URI useful here?
>
> Possible answers:
> - configure my domain URI to www.mydomain.com and have my two servers 
> appear as one... under www.mydomain.com/x and www.mydomain.com/y?
> - conclude that domain URI is not so useful after all?
> - another idea?
>
>
> Thoughts?
>
> -- 
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org