<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 Jul 4, 2014, at 3:46 AM, Erik Jan de Wit &lt;<a href="mailto:edewit@redhat.com">edewit@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div 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>- We have versioning in JPA (optimistic locking) - Use it (send 409 on server and send right data)</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></div></div></blockquote><div><br></div><a href="https://issues.jboss.org/browse/FORGE-1916">https://issues.jboss.org/browse/FORGE-1916</a></div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br><blockquote type="cite"><div dir="ltr">- Client library will have helper methods for managing data</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></div>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</blockquote></div><br></body></html>