You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Oilid Adsi <Oi...@freenet-ag.de> on 2007/10/11 14:21:05 UTC

CayenneDataObject over WebService

Hello,

 

how is it possible to send and receive an own generated class of
CayenneDataObject-type over a WebService (for example Apache Axis 1.3)?

 

We made the experience that axis will throw an exception because the
CayenneDataObject is not serializable.

 

As workaround we have built another object (webservice-bean) with the
same getter- and setter-methods 

and merged the CayenneDataObject-class and webservice-bean together by
using java5 method-reflections. 

 

But this is not really nice...

 

 

Thanks for help!

 

Oilid


Re: CayenneDataObject over WebService

Posted by Aristedes Maniatis <ar...@maniatis.org>.
On 11/10/2007, at 10:21 PM, Oilid Adsi wrote:

> how is it possible to send and receive an own generated class of
> CayenneDataObject-type over a WebService (for example Apache Axis  
> 1.3)?
>
>
>
> We made the experience that axis will throw an exception because the
> CayenneDataObject is not serializable.

Have you looked at the Cayenne ROP project? (http:// 
cayenne.apache.org/doc/remote-object-persistence-guide.html)

This already does exactly what you need and is dead simple to set up.  
It uses Hessian as the 'web service' - really just a simpler, faster,  
smaller and much easier alternative to SOAP. We use both SOAP and  
Hessian in our application, and if we could I'd gladly strip out the  
clumsy Axis for Hessian any day.

All Cayenne objects are serialised and sent across the network  
between client and server.

Ari Maniatis



-------------------------->
Aristedes Maniatis
phone +61 2 9660 9700
PGP fingerprint 08 57 20 4B 80 69 59 E2  A9 BF 2D 48 C2 20 0C C8