Please login or register to access secure site features.

Note: By continuing to use DevConnect Program Services you agree to our latest Registered Member Terms.

Sign in using DevConnect ID

Forgot password?

Trouble logging in?

Submit a ticket for Registration Support.

I have an SSO ID

?
sign in

Don't have a DevConnect or SSO ID ?

Create a DevConnect account or join the program.

register now
^
Forum Index » Avaya Breeze » How can I use send asynchronous response back to the Rest WS after user actions ?   XML
 
Author Message
liu159



Joined: 19/01/2015 10:11:20
Messages: 96
Offline

I have a web service that gets a JSON request, makes a call and receives results that indicating user actions (pick up the call, drop the call).

What should I do in CallListener to send back this information ?

And how do I receive it in the web service asynchronously ?
JoelEzell



Joined: 15/11/2013 10:26:35
Messages: 780
Offline

Unfortunately, we don't have a good solution to this at the present time. We are investigating whether we can enable other JAX-RS implementations to be used with our next release. Some alternate implementations allow for asynchronous responses to be sent. With our 3.0 release, you'll have to handle things synchronously. The best practice would be to return a 200 or 204 immediately, then have the client poll for further status. You could use long polling if desired. If you're not expecting a large volume of requests, you could also use a lock to block the HTTP thread while waiting for subsequent callbacks.
 
 
Go to: