|
From: <tri...@tr...> - 2003-08-27 21:04:51
|
Darren, Lars, Juergen, I see that Juergen has made this change in CVS. FYI this is BEA Support's take on this issue: ---- >I have found the source code that calls the contextInitialized() method after the HttpServlet.init(), unfortunately this doesn't seem to be configurable. WLS 8.1 conforms to the servlet 2.3 spec, which is ambiguous as to when the listener should be called - It only specifies that it be called prior to the servlet handling requests. Under Servlet 2.4 the spec states that the listener should be called prior to servlet initialization, I am endeavoring to find out if there are any plans to conform to the 2.4 spec in a future release of WLS. >From what I can find out Servlet 2.4 is a J2EE 1.4 requirement which will be supported in a future release that is only due to go beta in June 04 (the current code name is diablo should you wish to check up closer to the time). I don't think there is anything more that can be done on the case, please let me know if you have any further questions, if not I'd like to close the case. ---- So, for now we are stuck with supporting both ways of doing things. We should probably add some comments in the examples where we use the listener approach. Thomas > On Monday 25 August 2003 09:02, jürgen höller [werk3AT] wrote: > > > Unfortunately, the Servlet 2.3 spec leaves this unspecified. The Servlet > > 2.4 spec clarifies that listeners have to be *initialized before* and > > *destroyed after* any servlets. Tomcat and Resin already behave this way, > > Orion does too since 2.0.2 after I've informed them about the Servlet 2.4 > > clarification... > > > > For a solution with current WebLogic versions, I agree that using the > > servlet initializers like ContextLoaderServlet and Log4jConfigServlet is > > probably the best choice, as Thomas has recommended. > > Under the circumstances, I don't know whether you consider it important to > remove the deprecation tags and comments from the ContextLoaderServlet et al > > classes before the M1 release? If it's only in Servlet 2.4 that correct > behaviour can be guaranteed, then perhaps the comments should reflect this to > > avoid confusion for people using containers that implement the WebLogic > behaviour. > > Possible amendment attached.. > > Regards, > > -- > > Darren Davison > Public Key: http://www.davison.uk.net/key.jsp > |