I've been busy with the OASIS work so haven't had a chance to reply to this yet but i don't want it to look like silence means consensus. I think we can greatly simplify this webapp and servlet host behaviour as its got quite unnecessarily complicated. Will hopefully have more time to spend on it next week.
...ant On Fri, Oct 9, 2009 at 8:32 PM, Raymond Feng <[email protected]> wrote: > WebappServletHost has the lowest ranking to favor host-jetty. Having a name > attribute allows us to find the WebAppServletHost in the web application > environment by name. > > Thanks, > Raymond > -------------------------------------------------- > From: "ant elder" <[email protected]> > Sent: Friday, October 09, 2009 12:41 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 > >> Ping, I'd still like to understand this change? >> >> ...ant >> >> On Wed, Oct 7, 2009 at 5:14 PM, ant elder <[email protected]> wrote: >>> >>> 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 >>>> >>>> >>> >
