• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Startup classes in iplanet

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"yogendrababu"

Please read our naming policy and change your display name to include two names. Thanks.
reply
    Bookmark Topic Watch Topic
  • New Topic