I have a 3rd party library that I use in my webapp. I need to call an init method from this library during axis2 startup.
I can’t wait until the first request comes in – it must be done at startup.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
in your web.xml:
Where
YourServletContextListenerhas to implementjavax.servlet.ServletContextListenerand provide your initialization code in thecontextInitialized(..)method.This method is called as soon as the servlet context is loaded.