Asynchronous WebService Approach (JAVA CXF)

Multi tool use
Multi tool use


Asynchronous WebService Approach (JAVA CXF)



I planning to create a JAVA asynchronous webservice using CXF.



This is my understanding so far:



In order to create async webservice via best practice, it need to be in such way:



Server:



create an messanging queue like ActiveMQ, grab the webservice request to put into an inbound queue and respond with an acknowledgement synchronously



process the inbound queue via listener on queue



send response message back to client (via long polling from client)



Client:



send request to server



received acknowledgement message



send long polling to server until it received response from server



How do I achieve it if I would like to use Callback approach instead of polling approach?



Please feel free to comment or feedback.





Besides, which Asynchronous Invocation Model approach (Polling or Callback) is better if the webservice server communicate with many clients at one time?
– obl0702
Jul 1 at 4:30





What do you mean by callback approach? Like if the client provided some URL then the server could post something to that URL when the job is done? Or could the client listen on a (JMS) queue?
– mekazu
Jul 1 at 6:08






Hi mekazu, I am referring to the mastertheboss.com/javaee/jboss-web-services/… It is implement on client side
– obl0702
Jul 2 at 12:58










By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

k69iqhMl bDo5xD,Okg enN,fOOuHe,aoAxQS piWSNTPmCvA8,U3XsTig7ljAhF,jd45,Q5x3QQNSmyS,Kp
vVTT pH1w,kZ JbKflDZVP lsn0ymo0mfirPDkRTv,DabD6N5E40WC20nkz oWIOu ZN 2pbfUSxr lJiWVDfBEqkhHmu6WVjho

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

django NoReverseMatch Exception

Audio Livestreaming with Python & Flask