[aerogear-dev] simple Java sync server

Matthias Wessendorf matzew at apache.org
Tue Jan 21 10:22:17 EST 2014


On Tue, Jan 21, 2014 at 3:44 PM, Erik Jan de Wit <edewit at redhat.com> wrote:

>
> On 21 Jan,2014, at 15:30 , Matthias Wessendorf <matzew at apache.org> wrote:
>
> Hello Erik,
>
>
> On Tue, Jan 21, 2014 at 10:43 AM, Erik Jan de Wit <edewit at redhat.com>wrote:
>
>> Hi,
>>
>> Made a very simple Java version (based on hibernate) of the sync server.
>>
>
> I think JAX-RS is a good choice for (existing) Java EE applications.
>
> Grizzly/Jersey was just used as an example? Or was it meant to be
> 'embedded' ? In that case my choice would have been undertow-resteasy:
>
>
> It was just meant for testing
>
> ```
> UndertowJaxrsServer undertow = new UndertowJaxrsServer();
> undertow.deploy(my_JAX_RS_application);
> undertow.start(...);
> ```
>
>
> Regarding the 'Car' entity: I am wondering if, on the server, something
> more like the API discussed in here would be possible:
>
> https://github.com/aerogear/aerogear.org/blob/data-sync/docs/specs/aerogear-data-sync/index.md#java
>
>
>
> So, we would have a @Entity for the 'Document', where the content field
> could be an 'embedded' entity/object;
>
>
> right, I now just use version number instead of revision, let’s see fi I
> can get the more align
>

A hibernate adapter for the Netty-Server would be nice as well, especially
since all the HTTP part has been already there, would be just a matter of
plugin in a different store


>
>
>
>
>
>> It doesn’t merge so any change in a entity that is old will give a merge
>> conflict. It uses the same ‘protocol’ as couch so WDYT?
>>
>
> Regarding the 'couch-based protocol': In theory that means our current
> clients (e.g. iOS/JS) would work here too, assuming the JAX-RS server would
> be following the 'document' model, right?
>
>
>>
>> Cheers,
>> Erik Jan
>>
>> https://github.com/edewit/sync-server
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>
>
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140121/241199cf/attachment.html 


More information about the aerogear-dev mailing list