java - How can I run initialization code during axis2 startup? -


i have 3rd party library use in webapp. need call init method library during axis2 startup.

i can't wait until first request comes in - must done @ startup.

in web.xml:

<listener>     <listener-class>com.my.yourservletcontextlistener</listener-class> </listener> 

where yourservletcontextlistener has implement javax.servlet.servletcontextlistener , provide initialization code in contextinitialized(..) method.

this method called servlet context loaded.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -