I looking for the best way to obtain JSON data, that polling from server to JS (generated by DWR) in the client-side. So I going to make Java-client for it. Any ideas and advices about it are greatly appreciated.
UPDATE: Primary goal - to understand how I can intercept JSON data transmitted from server (like in the Firebug). On the server-side - DWR (JSP pages), on the client-side - JS that generated by server. This scheme works with long-polling.
Why not use a JSON parsing library for Java like Jackson ?
Or you could make a webclient since this is obviously the purpose of the generated JS.