Reverse ajax in dropwizard

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

Any comments would be appreciated. thanks in advance

+3


source to share


2 answers


As far as I know, reverse ajax is not available directly in Dropwizard. But the inverse ajax effect can be set directly using either websockets or long polling. Websockets are an efficient way to communicate asynchronously between client and server without reloading the page on the client.

There are many ways to create websockets in dropwizard and my favorite is the jetty website.



here's a simple working example of a website

+1


source


There are several types of AJAX backlinks (poll, websites, copy, comet). Atmosphere, asynchronous comet / website framework works great with Jersey. You can try it here: https://github.com/Atmosphere/atmosphere



There is also a Dropwizard / Atmosphere version included: https://github.com/mgutz/dropwizard-atmosphere/

0


source







All Articles