*
The moose likes Other Java Products and Servers and the fly likes Startup classes in iplanet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Startup classes in iplanet" Watch "Startup classes in iplanet" New topic
Author

Startup classes in iplanet

yogendra babu
Greenhorn

Joined: Jul 01, 2002
Posts: 17
When the startup classes get started in SunOne??
.I deployed a webapplication with a Startup servlet(load on startup tag =1).
The servlet's init method gets triggered not on the server's startup but
only after the first request to the webapplication(like calling any html or jsp in that application).
Is there any way to start(trigger the init) the servlet duing the server
startup?.
Thanks in advance.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

startup classes were introduced in iAS 6.0 sp3. These classes load on iAS startup and you could program one to 'touch' your webapplication, and thus invoke the 'load on startup' behaviour of the webapp.

The only problem with this is that your webapp might not exist yet, before iAS is done pulling itself up. You'd need to code for this possibility.
If you are only using iWS, then a possibility is to modify the iWS startup script to invoke a simple wget command on your webapp, again to invoke the 'load on startup' behaviour. The same gotcha applies here. Make sure your script intelligently handles receiving a 404 error (the webapp is not done loading yet).
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

"yogendrababu"

Please read our naming policy and change your display name to include two names. Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Startup classes in iplanet
 
Similar Threads
ServletConfig getInitParameter() ????
Replacement for the T3StartupDef Class
Threading class
Loading Data at app startup
Startup problem in oracle 9ias (Custom Startup class)