S
ShaneLM
Hi, I'm new to java web services and am trying to understand the
context in which they are run. Any pointers to the web service
lifecycle (specifically through Axis2) would be awesome.
My specific problem is that I'm trying to create a web service that
spawns a background process that will keep running after the web
service call completes. So far my research has given 2 possible
methods.
1) Create a new thread during the service call. My worries are that
this will get killed as soon as the web service returns, or that I
won't be able to maintain a handle on it when I want to kill the
thread later.
2) Use the Axis2 framework to develop an asynchronous service, as
described here http://www.ibm.com/developerworks/webservices/library/ws-axis2/
Would these methods work? Which would you recommend?
In either method, what's the best way to exchange data between this
background process and any future web service calls?
Thanks so much for your time!
Shane
context in which they are run. Any pointers to the web service
lifecycle (specifically through Axis2) would be awesome.
My specific problem is that I'm trying to create a web service that
spawns a background process that will keep running after the web
service call completes. So far my research has given 2 possible
methods.
1) Create a new thread during the service call. My worries are that
this will get killed as soon as the web service returns, or that I
won't be able to maintain a handle on it when I want to kill the
thread later.
2) Use the Axis2 framework to develop an asynchronous service, as
described here http://www.ibm.com/developerworks/webservices/library/ws-axis2/
Would these methods work? Which would you recommend?
In either method, what's the best way to exchange data between this
background process and any future web service calls?
Thanks so much for your time!
Shane