You can definitely call a servlet or ping a server from your workerpool.js. Just do an ajax call from the workerpool.js and return the content/http response from making the call.
e.g. workerpool.js ==ajax request==> [ server ] [ server ] will return some kind of http response (e.g. 200 if the page is found, 500 for server error, etc.) to workerpool.js. You can control the response on the server side, e.g. have the servlet return a particular code for "OK" or "ERROR" in the operation or something. Then you just get the responseText and parse it. I'd imagine it's pretty similar to regular ajax, except that you are managing this all with a workerpool... BUT... I don't know anything about gwt -- never used it before. On Feb 17, 6:31 am, "gadaleta.marco" <[email protected]> wrote: > I' m having more difficult to understand some interacion between gwt > and gears. > I'm finding for cool example but..nothing.. :-( > WorkerPool give me the possibility to execute some code in > asynchronous way. > So, i wonna know if i can call a servlet or ping a server from > workerpool.js script. > I call workerpool.js from java, and it work fine. > But there is a way to know if the application is online or not by > calling the server from workerpool.js function? > Can you give me some code? > > Thx > Marco
