cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Dahbura <>
Subject Re: Help with Jersey Rest Services and Cayenne
Date Mon, 06 Jun 2011 22:56:11 GMT

I wish we could get the JAXB integration into Cayenne that would be a great asset for the
work we use.  I am not sure if we could tackle it here or not.


----- Original Message -----
From: "Andrus Adamchik" <>
Sent: Thursday, June 2, 2011 7:57:35 AM
Subject: Re: Help with Jersey Rest Services and Cayenne

On Jun 2, 2011, at 2:43 PM, Andrus Adamchik wrote:

> XML (or other types of serialization) of framework-managed objects is a pretty involved
topic. So my advise would be to use your own POJO data transfer objects (DTO) to work with
JAXB (those can be auto generated from the model with custom templates if you want). 

And I wish at some point we'd create JAXB bindings for Cayenne. Just that nobody volunteered
to do that yet. We took a few shots at various XML serialization implementations. The most
notable are:


Working, but has severe performance limitations. Deprecated in 3.1 and will be removed from
Cayenne in the future.


A proof of concept that I wrote for metadata-driven XStream-based serializer (can work with
JSON or XML). I like this one. It provides fine-grained control over which parts of the object
graph are serialized and is generally more flexible than 1. However it still requires significant
work to make it production-quality.

3. Finally the JAXB integration was an idea that was floated around, but hasn't materialized

Any interested parties are welcomed to jump on the dev list and discuss this further (and
offer help!).


View raw message