Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Startup classes in iplanet" Watch "Startup classes in iplanet" New topic

Startup classes in iplanet

yogendra babu

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
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


Please read our naming policy and change your display name to include two names. Thanks.
I agree. Here's the link:
subject: Startup classes in iplanet
It's not a secret anymore!