javadropwizardreverse-ajax

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


Solution

  • 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