Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Webアプリで使用するサードパーティのライブラリがあります。axis2の起動時に、このライブラリからinitメソッドを呼び出す必要があります。
最初のリクエストが届くまで待ちきれません。起動時に行う必要があります。
web.xmlで:
<listener> <listener-class>com.my.YourServletContextListener</listener-class> </listener>
メソッドの初期化コードYourServletContextListenerを実装して提供する必要がある場所。javax.servlet.ServletContextListenercontextInitialized(..)
YourServletContextListener
javax.servlet.ServletContextListener
contextInitialized(..)
このメソッドは、サーブレットコンテキストがロードされるとすぐに呼び出されます。