Hi Julien

Le 27 juil. 2016 13:36, "JulienB" <[email protected]> a écrit :
>
>
> I encounter a problem around Apache Johnzon to convert a Java object to
> Json.
> I have two class A and B having a relation bi-directionnal.
> With TomEE 1.7.x and XML annotations (like @XmlInverseReference or
> @XmlElement), no problem.
> On TomEE 7.x, Apache Johnzon loops between two instance for object
mapping.
>
> Apache Johnzon doens't seem to manage XML annotations.
>

True

> The documentation around Johnzon doesn't evoke any solution for this
issue.
>
> Can I change the provider ? Or How I configure Johnzon to work properly.
>

You can use jettison or jackson-jaxb adding the libraries and configuring
it based on the end of this doc
http://tomee.apache.org/ng/developer/json/index.html (just adapt it to your
case)

> Have you a idea for solve my problem ?
>
> Thank you in advance
>
> Regards,
> Julien B.
>
>
>
> --
> View this message in context:
http://tomee-openejb.979440.n4.nabble.com/Migrate-TomEE-1-7-x-to-7-x-Java-to-JSON-Issue-tp4679500.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to