I'm still not sure I understand why the name is needed, why can't the
WebServletHost use the ranking like the OSGi ones?

   ...ant

On Wed, Oct 7, 2009 at 5:00 PM, Raymond Feng <[email protected]> wrote:
> I now removed the need to start the ServletHost in the module activator.
> Multiple ServletHost implementations can be available in a Tuscany
> distribution. We still need to pick one depending on the environment.
>
> In the WebServletHost case, the web application wants to use WebServletHost.
> I found that using a name as key is the simple way.
>
> The OSGi world has a similar case where multiple services are registered
> under the same interface. OSGi allows us to look up a particular instance
> using a filter (a query on the properties) or by default the one with the
> highest ranking. Actually, we use the OSGi service registry as the extension
> point registry for the OSGi-enabled Tuscany runitme.
>
> Thanks,
> Raymond
> --------------------------------------------------
> From: "ant elder" <[email protected]>
> Sent: Wednesday, October 07, 2009 12:03 AM
> To: <[email protected]>
> Subject: Re: svn commit: r822369 - in /tuscany/java/sca/modules:
> host-http-osgi/src/main/java/org/apache/tuscany/sca/http/osgi/
> host-http/src/main/java/org/apache/tuscany/sca/host/http/
> host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/ host-jetty/sr
>
>> On Tue, Oct 6, 2009 at 6:40 PM,  <[email protected]> wrote:
>>>
>>> Author: rfeng
>>> Date: Tue Oct  6 17:40:32 2009
>>> New Revision: 822369
>>>
>>> URL: http://svn.apache.org/viewvc?rev=822369&view=rev
>>> Log:
>>> Add missing files and use name attribute to identify the host
>>>
>>
>> Could you say a bit more about why you need to do this?
>>
>>  ...ant
>
>

Reply via email to