<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 4 Jul,2014, at 9:28 , Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt; wrote:</div><blockquote type="cite"><div dir="ltr"><div><div><br></div><div>2) Initial quick and simple solution based on JAX-RS and JPA:</div>
</div><div><div>- We have versioning in JPA (optimistic locking) - Use it (send 409 on server and send right data)</div></div></div></blockquote><blockquote type="cite"><div dir="ltr">-- Use JAX-RS&nbsp;ExceptionMapper for exceptions around the optimistic locking ?</div></blockquote><div><br></div><div>Added handling of OptimisticLockException to forge&nbsp;<a href="https://github.com/forge/core/pull/481">https://github.com/forge/core/pull/481</a>&nbsp;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.</div><br><blockquote type="cite"><div dir="ltr"><div><div>- Client library will have helper methods for managing data</div></div></div></blockquote><div><br></div><div>POC of client handeling this&nbsp;<a href="https://github.com/edewit/aerogear-push-quickstarts/tree/conflict/client/cordova/angular/www">https://github.com/edewit/aerogear-push-quickstarts/tree/conflict/client/cordova/angular/www</a>&nbsp;this will just show the client version and the server version and the user can choose which version to take</div><br><blockquote type="cite"><div dir="ltr"><div>
<div>- Use push to send notifications that data changed?</div><div>- JAX-RS Annotation to send notifications?</div></div><div><br></div></div></blockquote><div><br></div></div></body></html>