On Tue, May 19, 2009 at 9:13 AM, ant elder <[email protected]> wrote: > On Tue, May 19, 2009 at 4:54 PM, Raymond Feng <[email protected]> wrote: >> It's easy. The user can just add a "fragment" module that only contains the >> META-INF/services declarations. For example, if the default ranking for >> Jetty is 1 and Tomcat is 2 and the user wants to use Jetty instead of >> Tomcat, he/she can just add a new declaration for Jetty using ranking 3. >> >> Thanks, >> Raymond >> > > Wouldn't it be (a lot) easier for the user to just remove the tomcat module? > > I think we need to step back a bit and all understand the use cases. > We've currently got tuscany as lots of little modules so you can > configure a system by choosing the modules you want to include, and > working that way i'm not sure i see why we need a ranking mechanism. > If we want to just include all the tuscany modules and then configure > a runtime then explicitly configuring which modules to activate and > the order they start may be easier and more flexible than a ranking > system. And an explicit config file would also do what you need in the > use case you're describing wouldn't it? > > ...ant >
I think we are getting confused because we are discussing two issues on the same thread, let's concentrate on the "ranking attribute" discussion here, and leave the Tomcat/Jetty for a different thread. Let me give a concrete use case : I have a module activator in "tuscany-web-javascript-dojo" that register Dojo uri to servletHosts. In this case, I need to make sure that some servletHost have been started before I can use it. Luckly, 99% of the time, the servletHosts extension is starting first and things are working ok, but once in a while, there are issues and we get NPE because the servletHosts is not available as described in TUSCANY-2984. [1] https://issues.apache.org/jira/browse/TUSCANY-2984 -- Luciano Resende Apache Tuscany, Apache PhotArk http://people.apache.org/~lresende http://lresende.blogspot.com/
