DWR 2 - DWR 3 comet

I am currently developing DWR 2, but now I want to try DWR 3. I don’t understand how a comet can be made with DWR 3. I have searched many times on Google but I haven’t found any good examples. Can anyone help me?

0


a source to share


1 answer


You need to set up DWR to enable reverse AJAX. To start the comet cycle, you need to request a Reverse AJAX on page load: dwr.engine.setActiveReverseAjax(true);

. To enable full streaming, set init-param

: maxWaitAfterWrite

c -1

. If full streaming is not what you want, you can set it to match any polling rate (default 5s). The comet can be tricky on the server, so be careful.



+2


a source







All Articles