This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Hi , I want to do jumpstart of some operations at the application start up time or new session start up time at global level of the application.I know this can be done by use of global.asa file in ASP's.How do I do this in servlets/JSP's. Thanks in advance for the answers. Cheers, Narendra.
Narendra Kamaraju
Terence Doyle
Ranch Hand
Joined: May 30, 2001
Posts: 328
posted
0
HI, Narendra, There are 4 methods in the ServletContext interface that might help: getInitParameter() getInitParameterNames() setAttribute() getAttribute(). <i>I'm quoting this from the docs as I've only been studying the specs for 3 days now so I've a long way to go.</i> Now, exactly how to go about implementing the ServletContext interface .... Hopefully, some wiser soul than me can help you out - I'll be watching this post to see any solutions for myself Bye,
------------------ Terry Doyle Sun Certified Programmer for Java 2 Platform
Raising Flares debut album 'Ignition' out now
http://www.raisingflares.com
Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)
Joe Paolangeli
Ranch Hand
Joined: Apr 05, 2000
Posts: 73
posted
0
This can be accomplished by using the init() method of a servlet. The init() method of a servlet can be automatically started during the server start up. For example in Tomcat you can automatically start up a servlet by including the "<load-on-startup>" tag in the web.xml file:
Hope this helps
[This message has been edited by Joe Paolangeli (edited October 18, 2001).]