Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reverse ajax in dropwizard

I want to implement reverse ajax in Dropwizard application.How can i do that?? Is there any facility provided by Dropwizard for accomplishing this.?

Any comment will be appreciated. Thanks in advance

like image 519
Lygub Org Avatar asked Jun 27 '26 22:06

Lygub Org


1 Answers

As far as i know reverse ajax is not directly available in Dropwizard.But the effect of reverse ajax can be established directly using either web-sockets or long polling. Web-sockets are efficient way of asynchronous communication between client and server without any page reloading on client.

There are many ways of establishing web-sockets in dropwizard and my favorite is jetty websocket.

a simple websocket working example is available here

like image 192
Sreeraj Karichery Avatar answered Jun 30 '26 13:06

Sreeraj Karichery