I'm writing a remote service that executes a long-running process that
I'm updating on the client-side using a progress bar widget.

What I'd like to do is have two methods in the service:

String longRunningProcess(Request request);

Progress checkProgress(String id);

The question is, what's the best way to get the ID back to the client?
The UUID should be created on the server side -- but if I generate it
in the "longRunningProcess" method, it won't return until AFTER the
process is complete.

I currently see two options:

1) add an "primeProcess" method to the service that simply returns the
next UUID. This UUID is provided by the client in the request.

2) Have the client generate the UUID...but the server really should be
the place the ID is generated, since it's managing them and can
guarantee uniqueness.

Is there a better way? How do others handle this?

Thanks!

-Patrick


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to