|
Home |
WebServices
| Maven |
SOA |
REST
| Agile & SCRUM |
Java & JEE
|
     |
| | | | | |
:: Best Training & events on Java & JEE |
|
How to configure a startup class in Tomcat 5.5.x or 6 for a web application
Incase you have any difficulty in configuration please
contact us.
In this tutorial you will learn how to configure a startup class for a
web application in Tomcat 5.5.x or Tomcat 6.
Step 1:Let us assume Tomcat is installed in C:\tomcat.
Let us assume you want to define a startup class
for a web application named reminder.
Navigate to C:\tomcat\webapps\reminder\WEB-INF and open the file web.xml.
Configure the startup class AppStartUpListener under the package
com.thea.startup as in the screen shot below.
Step 2: The startup class AppStartUpListener should follow certain rules
like implementing javax.servlet.ServletContextListener. The Java source of the
AppStartUpListener is provided in the below screen shot.
|
|
Copyrights 2008 Thea Solutions
All rights reserved |
Powered by 4creativeweb Solutions |
|