This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Can i start or run a  part of code when we first deploy a WAR file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Reply locked New topic
Author

Can i start or run a part of code when we first deploy a WAR file?

ayyappa karamsetty
Greenhorn

Joined: Feb 26, 2011
Posts: 4
Hey folks,

Is there any method or API that i can use so that when ever i deploy a new WAR file, a part of code should execute or perhaps when tomcat starts, the respective servlet should start or run a code continuously.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9952
    
    3

Have a look here:

http://www.coderanch.com/t/530997/Tomcat/Starting-Servlet-automaticaally-when-tomcat


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Can i start or run a part of code when we first deploy a WAR file?
 
jQuery in Action, 3rd edition