Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Asynchronous Web Service

 
Geevee Joseph
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could anyone please explain how to develop asynchronous webservice using Spring framework?
Thanks in advance.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Do you want a web service that processes requests asynchronously or a client that sends requests and receives responses asynchronously?
Is there any particular part of the Spring framework you want to use?
Best wishes!
 
Geevee Joseph
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm pretty new to Spring WS. Have worked on client side Spring WS using WebServiceTemplate.
I didnt get the actual meaning in your comment - 'Do you want a web service that processes requests asynchronously or a client that sends requests and receives responses asynchronously?'
What I'm looking for is a client which can asynchronously use a service. Shouldn't it be a asynchronous WS to achieve this?
What I want to know is whether Spring supports this and steps involved in development.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
No, the web service itself does not have to be asynchronous in order to be accessed by an asynchronous client.
If you were to use pure JAX-WS, you add a file like the following using the -b option with the wsimport command to create client artifacts that allow you to obtain a client that can asynchronously access a synchronous web service:

This will result in the generated service interface containing methods that return a Future object that can be polled for a result.

As far as I know, there is no support for asynchronous clients with Spring WS. There is a workaround, see this thread: http://forum.springsource.org/showthread.php?t=54887
Do correct me if I am wrong!
Best wishes!
 
Geevee Joseph
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ivan for the response.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic