axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upul Godage" <>
Subject Re: axis2: how to run a main class(or servlet) in my service pack right after axis2 server is started?
Date Mon, 22 Oct 2007 03:52:09 GMT
There is this ServiceLifeCycle interface. When implemented and configured,
startUp, shutDown will be called at service deployment, undeployment times
respectively. Deploying services happen after Axis2 server has finished it's
start-up work, I presume.


On 10/22/07, Qil. Wong <> wrote:
> Hi,
>     I have this doubt for quite a long time. At past I choose another way
> of webservice publishing, but I still want to know how it can be resolved in
> aixs2. After user guide refernce and other documents and forumn searching, I
> got no result, so I come here to ask you, thanks!
>     In my scenario, I will publish a webservice from an existing java
> application. This application has a main class and run as a server, the APIs
> for outside applications are published as java socket, but now I need to
> change these APIs to webservice kind. As I know, the API changing is very
> easy, and I have finished yet. But, how to run the main class while the
> application is deployed as a webservice .arr pack right after axis2 server
> is started? Just as a web application deployed in Tomcat, I need to write a
> servlet, and configure the web.xml by adding:
>     <servlet>
>         <servlet-name>name</servlet-name>
>         <servlet-class>org.a.b.AServlet</servlet-class>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
>     Best reguards!
>     Qil.Wong

View raw message