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

Burr Sutter bsutter at redhat.com
Fri Jul 4 09:30:40 EDT 2014


On Jul 4, 2014, at 3:46 AM, Erik Jan de Wit <edewit at redhat.com> wrote:

> 
> 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.

https://issues.jboss.org/browse/FORGE-1916

> 
>> - 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?
>> 
> 
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev

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


More information about the aerogear-dev mailing list