Mohamed Alatroush wrote:add this to the servlet definition at web.xml
true, but take care of the "load-on-startup" parameter.
it can depend the kind of server you are deploying on.
sun servers and websphere CAN use different numbers.
i remember at the time that on the sun server it had to be "-1" or it didn't work.
Don't know about tomcat itself. also 1 i supose.
Rather, a context listener should be used.