May 3rd, 2011, 08:29 AM
This question might not be actual fit for this forum, I will still ask to seek any ideas.
The use case is pretty common: Client calls a webservice operation to , lets say, get quote for a bunch of transactions. The service in turn sends a async jms message to another backend system, which will reply on a queue only when it has the quote.
This can take anything from couple of seconds to 5 min, and client cannot wait for that long. So what we are want to do is to generate a unique id for the request, and send the response acknowledgement immediately.
Later, when the backend system replies back, we want to send the actual response back to client.
Is there any standard way / non-standard way to achieve this, other than these:
1. Client keeps polling
2. Client exposes a service, and we invoke that
I did read about Solicit-response port type on w3, but seems like its not ws-i compliant, and probably because of that, there are no examples, samples or any support from other types (Jax-Ws etc) too.