You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@batchee.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2016/08/03 12:53:21 UTC

moving to johnzon

Hi guys,

pushed few changes today and would like to do a quick heads up on two of
them:

1- (let's start by the easy one) I added a "tomeeplus" flavor of our jaxrs
war which is mainly the same as the default one without the libraries
provided by tomeeplus (batchee-jbatch/johnzon/xbean). Goal is mainly to
provide a lighter binary for a fast integration/download/getting started.

2- Switched from jackson to johnzon (asf pwa!) the default jaxrs provider.
Encounter few issues and needed to use the snapshot (pushed it on nexus and
shouldn't be a blocker since we have enough overlap in term of committers
between both communities). However I think we missed one point when
designing the JAX-RS API: date handling. AFAIK with jackson we were
expecting them to be timestamp (long). Since it is not the default with
johnzon I provided this small jaxrs provider [1] making the date being
timestamps and enforcing the attribute ordering. I think we are good with
that. Part of the side effects was to need to migrate few endpoint from
JSON to TEXT_PLAIN media type when they were returning primitives (id).
This is fine IMO since previous API was wrong (long is not JSON).


Let me know if you have any concern regarding these changes or if it looks
good.

[1]
https://github.com/apache/incubator-batchee/blob/master/gui/jaxrs/jaxrs-common/src/main/java/org/apache/batchee/jaxrs/common/johnzon/JohnzonBatcheeProvider.java#L40

Thanks,
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>