Rich Neill wrote:

> > >
> >
> > Check out the example configuration files.  In your zone properties
> > file, to have servlets aliased to "myservlet" and "firsttime" start up
> > automatically:
> >
> > servlets.startup=myservlet,firsttime
> >
> > Craig McClanahan
> >
>
> I was thinking more along the lines of a startup class, which would be
> instanced before all servlets. The startup class might setup the JVM
> environment in some specific way before any servlets are called.
> Does what you describe above accomplish this?
>
> Rich
>

The "servlets.startup" configuration lets you ask JServ to initialize the
specified servlets before it makes itself generally available for servlet
processing.  Without knowing what kind of setup you are trying to do, it is
hard to know for sure whether a servlet started this way (which is just a
piece of Java code, after all) can do what you want.  People have been known
to use this approach for servlet-engine-startup initializations (even if the
"servlet" itself is never called from a web browser).

On the other hand, since Apache JServ is open source, you could easily add a
call in the main() method to initialize whatever you wanted to.

Craig McClanahan




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to