|
From: Colin S. <col...@ex...> - 2003-08-11 21:42:57
|
I think it's great to keep features in there that are at no cost allow
the framework to still work in legacy environments. I would only make
the comment that I hope in the future if there are compelling features
that only work in a Servlet 2.3+ environment, the need to maintain 2.2
compatibility would not be an impediment to adding them.
(As an analogy, Ant up to and including 1.5.3 has a few incredibly
annoying classloading limitations, primarilly due to the fact that they
wanted to maintain JDK 1.1 compatibility. However for the benefit of the
1% of ant users who need JDK 1.1 compatibility, the other 99% have
suffered somewhat.)
jürgen höller [werk3AT] wrote:
>Hi Darren,
>
>You're actually the first one to ask for reviving ContextLoaderServlet ;-) But anyway, you got a point with large corporations and their lagging behind in terms of updates. I've already re-added the loader servlet, I'll commit it tomorrow.
>
>Of course, the ContextLoader delegate already allowed being called in a single line from within a custom startup servlet. So we're now re-adding ContextLoaderServlet for pure convenience on Servlet 2.2, to avoid the need for a custom startup servlet with a ContextLoader.initContext call.
>
>Frankly, I haven't been aware that the listeners have been our only Servlet 2.3 dependency. But the main reason for removing the loader servlet was consistency: We also got WebAppRootListener and Log4jConfigListener, and splitting each of them into a listener, a servlet, and a delegate class too seemed like overkill. Do you see any need for this?
>
>Log4jConfigListener is just necessary for custom config file locations and config modification detection. It includes the functionality of WebAppRootListener, which exports the web app root directory to a system property, mainly for use within Log4J log file paths (a la ${webapp.root}/WEB-INF/mylog.txt to get a log file within the web app).
>
>Regards,
>Juergen
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: dar...@hs... [mailto:dar...@hs...]
> Gesendet: Mo 11.08.2003 17:40
> An: spr...@li...
> Cc:
> Betreff: [Springframework-developer] Re: [Springframework-user] applicationContext.xml for servlet 2.2
>
>
>
>
>
> Would there be any interest in reviving the skeleton of the old i21 servlet
> that used to do this, just for the sake of backwards compatibility - at
> least for a while? I know it *is* a step backwards, but many large
> corporations do have a habit of moving reluctantly to newer versions of
> application servers and plenty may appreciate the gesture. Seems a shame
> to push this framework activity into the application domain when it's only
> a dozen lines of code and it looks to be the only thing preventing servlet
> 2.2 compatibility for the MVC codebase.
>
> Attached is a modified version of the servlet with suitable @deprecated
> tags and comments for consideration. It should have no impact on any
> existing code from 0.9.1
>
> All the best,
> Darren.
>
> (See attached file: ContextLoaderServlet.java)
>
> <quote>
> Hi Darren,
>
> You're right, Spring assumes Servlet 2.3 in that it recommends listeners
> for startup work, like ContextLoaderListener and Log4jConfigListener. We
> compile against Servlet 2.3, so there might be some other dependencies too,
> but none that I can think of at the moment.
>
> If you look at the implementation of ContextLoaderListener, you'll find
> that it just delegates the contextInitialized event to
> ContextLoader.initContext(event.getServletContext()). So in a Servlet 2.2
> container, you could write your own load-on-startup servlet that invokes
> ContextLoader.initContext in its init method, among other custom startup
> work that you may require, like Log4J initialization.
>
> Regards,
> Juergen
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Darren Davison [mailto:da...@da...]
> Gesendet: So 10.08.2003 21:19
> An: spr...@li...
> Cc:
> Betreff: [Springframework-user] applicationContext.xml for servlet 2.2
>
>
>
> hi,
>
> All of the example web projects load the applicationContext with a
>
> <listener>
> <listener-class>
> com.interface21.web.context.ContextLoaderListener
> </listener-class>
> </listener>
>
> which is servlet 2.3 specific. Is there a supported/recommended way to
> make
> this work for servlet 2.2?
>
> Regards,
>
> </quote>
>
>
> Darren Davison
> CIBM Intranet Team
> int> 799 19431
> ext> +44 (0)20 7991 9431
>
>
> _____________________________________________________
>
> This transmission has been issued by a member of the HSBC Group
> "HSBC" for the information of the addressee only and should not be
> reproduced and / or distributed to any other person. Each page attached
> hereto must be read in conjunction with any disclaimer which forms part
> of it. Unless otherwise stated, this transmission is neither an offer nor the
> solicitation of an offer to sell or purchase any investment. Its contents are
> based on information obtained from sources believed to be reliable but
> HSBC makes no representation and accepts no responsibility or liability as to its completeness or accuracy.
>
>
>
>N?HS^?隊[)?{(??[?Z?z??n襴?4D??w%?ا?6?i???l?&???x?+??ljwE??????j??zz0?'?????Zɩ?z{^??0?v?\???b??J??DNm??ڲ??brK???&?
>??ƴ?]4?Mڽ?݊????Z??N??M???5J???jg???z??????x%??R?????ڙ?(?G^??h????l???q???z?m????X???(??~??zw??X?????b???????jg???z??
>
|