On 4 Jul,2014, at 9:28 , Matthias Wessendorf <matzew@apache.org> wrote:2) Initial quick and simple solution based on JAX-RS and JPA:- We have versioning in JPA (optimistic locking) - Use it (send 409 on server and send right data)-- Use JAX-RS ExceptionMapper for exceptions around the optimistic locking ?Added handling of OptimisticLockException to forge https://github.com/forge/core/pull/481 this will give clients a 409 so that they could show to the user that their copy was out of date. Now the client still need to react to this.
_______________________________________________- Client library will have helper methods for managing dataPOC of client handeling this https://github.com/edewit/aerogear-push-quickstarts/tree/conflict/client/cordova/angular/www this will just show the client version and the server version and the user can choose which version to take- Use push to send notifications that data changed?- JAX-RS Annotation to send notifications?
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev