This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
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).