[aerogear-dev] Sync - Server items (JAX-RS and JPA)

Erik Jan de Wit edewit at redhat.com
Fri Jul 4 03:46:11 EDT 2014


On 4 Jul,2014, at 9:28 , Matthias Wessendorf <matzew at 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 data

POC 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?
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140704/653c9441/attachment.html 


More information about the aerogear-dev mailing list