What is your method for testing your worker code? When writing a small demo with worker pool to calculate digits of PI that had lots of tricky logic: Live app: http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis&t=GearsSampleApplications
Worker code: http://code.google.com/p/gwt-google-apis/source/browse/trunk/gears/samples/workerpool/src/com/google/gwt/gears/sample/workerpool/public/pi_spigot_worker.js what I did is I wrote the bulk of my logic as a standalone script, then tested it as a regular (non worker) script. I wrote small stubs for the messaging and debugged it using Firebug. Then, the only step left was the messaging part. -Eric. On Wed, Jan 14, 2009 at 5:22 AM, Sanne <[email protected]> wrote: > > Hi, > no that's not the problem. The syncDB() - function is never running. I > tested this. > > Greetz > > On 13 Jan., 19:28, Eric Ayers <[email protected]> wrote: > > could it be that the variable 'db' is not declared inside your worker > > script? > > > > On Tue, Jan 13, 2009 at 10:01 AM, Sanne <[email protected]> wrote: > > > > > Hello, > > > > > I am experimenting with the workerpool but my background job won't > > > start work. > > > I think that the problem has something to do with the var workerId, I > > > assign the sourcecode but I never use it, I think. Can somebody help > > > me? > > > > > Here is the codehttp://pastebin.com/m3039ea3e! > > > > > Thank you. > > > Greetz Sanne > > > > -- > > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp:// > code.google.com/webtoolkit/ > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/
