cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: Cayenne and JAX-WS / JAXB
Date Tue, 27 May 2008 08:01:56 GMT
I never used JAXB, although I evaluated it briefly in the past. With  
everyone gradually moving to Java 6, it probably warrants a closer  
looks from us in Cayenne. More to the point, I think the annotations  
approach should work, but that will require some experimentation. So  
try it, and let us know if you run into any troubles.


On May 27, 2008, at 2:51 AM, Jon Sharp wrote:
> Hello all,
> We are using Cayenne 3.0M3 for ORM in our project and are exposing  
> this database using SOAP Web Services.  We're using the latest Sun  
> Metro stack (1.2), consisting of the JAX-WS and JAXB frameworks.  In  
> attempting to use Cayenne Data objects as either return types or  
> method parameters for our defined @WebMethod's, we are greeted with  
> an error that indicates JAXB does not handle interfaces.  For those  
> who may not be familiar with JAX-WS/JAXB, JAXB is responsible for  
> marshalling java objects into XML, and this is of course necessary  
> for use in SOAP web services provided by the JAX-WS framework.   
> According to 
> Mapping_interfaces.html, there are some solutions for this issue,  
> but it appears that it may involve code changes to Cayenne.  I'm not  
> a Cayenne developer, so I cannot say how feasible or practical this  
> approach may be.  Perhaps someone could comment on that, but more  
> important to me at this point is determining whether anyone has been  
> successful in marshalling cayenne data objects to XML using JAXB?
> Thanks,
> Jon
> --
> Jon Sharp
> CTO & Senior Engineer
> Campground Automation Systems, Inc.
> (615) 579-5868

View raw message