On 4 Jul,2014, at 9:28 , Matthias Wessendorf <matzew(a)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/...
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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev