But how can I tell the Servlet engine that this is the initialization
servlet and please load that during initialization ?? Further, if I have
several web applications, how can I tell the engine that for this
application load init servlet A, and for application B please load init
servlet B, etc.

Help again please

Kenneth Kwan
-----Original Message-----
From: Brian Button [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 14, 1999 8:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Shared objects for all Servlets - Servlet Initialization


Kenneth,

In a project I'm working on, we used the ServletContext to hold this
information as you said. To get this information loaded at
initialization time, we defined an initialization servlet and set it to
be preloaded. After that, all global objects were ready and available
for us to use.

bab

"Kwan, Kenneth Y" wrote:
>
> Thanks. I also found it can be implemented using ServletContext.
>
> Anyway, no matter which solution, how can I instruct a Servlet Engine to
> load my shared objects during web application initialization. In JSP, I
can
> use "global.jsa". In ASP, I can use "global.asa". In Servlet, how ???
>
> Kenneth Kwan

--
Brian Button           [EMAIL PROTECTED]
Senior Consultant      Object Mentor, Inc.
Products Review Editor C++ Report Magazine

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to