W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 1999

Re: confirm a question.

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Tue, 09 Nov 1999 09:45:25 +0100
Message-ID: <3827DF25.1260B105@sophia.inria.fr>
To: Alfred Wu <kib63613@ms35.hinet.net>
CC: www-jigsaw <www-jigsaw@w3.org>
The init method is called the first time the servlet is first requested.

Regards, Benoit.

Alfred Wu wrote:

> Hi,
>     Execute me, I am doing the project which the applet and the servlet
> can
> communicate with each other via socket connection . I successfully make
> them
> communication with each other via http connection. But when the applet
> connects
> to the servlet, the error message prompted on the Java Console indicate
> "java.net.ConnectException:Connection refused". I think it is the result
> of the
> init(ServletConfig ) method of servlet not called. And my question is
> when init(ServletConfig )  method is called by the server. I think it
> may be called
> while the request is invoked. It is not called while the jigsaw server
> start. Is my
> assumption correct ?
>     According to the description of Java Servlet Program,
> init(ServletConfig)
> method called by the server depends on the server and its configuration
> :
>     * When the server starts
>     * When the servlet is first requested
>     * At the request of the server administrator
>    So I want to confirm if it is called while the jigsaw server starts.
> Thanks and regards,
>           Alfred Wu

- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium   (W3C)
                    Architecture domain - Jigsaw Engineer

                http://www.w3.org/People/Mahe  - bmahe@w3.org
Received on Tuesday, 9 November 1999 03:46:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:35 UTC