GWT Google Web Toolkit Remote Object synchronization

I am looking for an elegant way to synchronize objects between multiple clients and a server over the web.

Example:
1. Client A registers for notifications of changes to a object O with the server S.
2. Client B notifies the server S that it has modified a property of the object O.
3. Server S checks which clients registered for updates to the object O, identified Client A and notifies the client A of a change.
4. Client A updates the local instance of object O.
5. Object O on the client A and object O on the client B are not synchronized.

Question: does Google Web Toolbox offers an out of the box solution to the architecture above?

Note: i know i can do this manually, with the Event Bus, for example. I am wondering if there is an out of the box solution that can let me simply register objects for updates and keep them synchronized without "reinventing the bicycle.."

THANK YOU!
cyber-33Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
jan-janssenCommented:
I am not a GWT developer myself but I came across the following statement:

Multithreading and Synchronization: JavaScript interpreters are single-threaded, so while GWT silently accepts the synchronized keyword, it has no real effect. Synchronization-related library methods are not available, including Object.wait(), Object.notify(), and Object.notifyAll(). The compiler will ignore the synchronized keyword but will refuse to compile your code if the Object's related synchronization methods are invoked.
http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html

But as always you are not the only one looking into this therefore I suggest you take a look at http://code.google.com/p/gwt-syncproxy/ it seems to be the extension you are looking for.
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
cyber-33Author Commented:
The issue here is NOT the synchronization in a multithreaded environment. The issue is synchronization of Java Objects and their attributes. For example, if I have two objects; o1 and o1, each instantiated from the class C1, each has a property NAME. So, if I set o1.Name = Joe, the goal is to have the system update o2.Name to Joe. Hope this clarifies the question...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.