----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Maybe this is not the right place for this but after the notice of jon about
the depracated method ServletContext.getServlet() I was shaked up because
almost all of my database logic depend on this.
Now, the API for says that the getServlet() method will return null (!!) and
"In lieu of this method, servlets can share information using the
ServletContext class and
can perform shared business logic by invoking methods on common non-servlet
classes."
Now it seems to me that the most adequate replacement would eb to put shared
resources to the ServletContext with the
ServletContext.setAttribute() method.
The question which remains is how different servlet contexts are created.....
would this be equivalent to jservs servlet-zones???
And are all contexts handled by the same virtual machine??
Stefanos
jon * wrote:
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> on 1/31/00 10:35 AM, Ola Samuelson <[EMAIL PROTECTED]> wrote:
>
> > You need some methods in the connection
> > servlet that handles
> > the handing out and returning of the connections and these methods can be
> > accessed by the other servlets
> > by using
> > "getServletConfig().getServletContext().getServlet("myconnservlet");" to
> > retrieve the servlet object.
>
> do NOT do this. it is deprecated and will not work with any newer servlet
> engines.
>
> -jon
>
> --
> Come to the first official Apache Software Foundation
> Conference! <http://ApacheCon.Com/>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
--
======================================================================
Stefanos Karasavvidis
Electronics & Computer Engineer
e-mail : [EMAIL PROTECTED]
Multimedia Systems Center S.A.
Kissamou 178
73100 Chania - Crete - Hellas
http://www.multimedia-sa.gr
Tel : +30 821 88447
Fax : +30 821 88427
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]