Hi, Eran,

    Socket is one of many aspects why I need to start as a server.

    It is very convinient to initialize variables I need and share memery
between different service calling.

2007/10/23, Eran Chinthaka <[EMAIL PROTECTED]>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Why do you want to have a main class and start it up? I assume this is
> because you were exposing your app thru a java socket and for socket
> handling you wanted to make it a server.
> Why not just expose your APIs directly as operations in a Web service?
> Just a quick thought
>
> Chinthaka
>
>
> 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
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHHaAnjON2uBzUhh8RAiACAKCpfz/DGkn04OFq8aMC/jD8uupUBwCeOgfD
> 9t39Fc4QnTRa4jL5KvMQp6I=
> =7xkI
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to