Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] instance objects and java Serializable
[CDO] instance objects and java Serializable [message #514371] Mon, 15 February 2010 06:11
david varnes is currently offline david varnesFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,
We are using CDO 2.0 with a db backed repository, works great,
thanks very much Eike and team !

We have a requirement to provide a remoted service with a mix
of both CDO and pojo classes. Our default pattern for this is
some variation of Spring remoting, normally httpInvoker. This
requires, of course, that all classes are Serializable. Getting
the marker interface to be carried in the CDO classes is easy
enough, but after doing that I realised that at runtime the
CDO objects do not have any direct member features for the
nativa Java serializer to work with, since all features are
delegated. Obvious enough when you stumble over it ! :-)

So I am sure we are not the first to arrive at this point,
what are the options ? I have dug around in the news archive
and some bugzilla entries.

a. I hope I am missing something obvious and can simply
configure either the Ecore model or the genmodel to
support native java serialization ?

b. Is there some way to invoke standard java serialization
on the CDO EStore that is backing the delegated features ?
I guess it must be available to the serializer at run
time ?

c. Ed's patch https://bugs.eclipse.org/bugs/show_bug.cgi?id=245014
seems to add serializing and deserializing support to EMF.
Is this just for models with Feature Delegation=NONE ?
Would it work straight up for CDO models ?

d. [maybe OT] Perhaps the easiest path is to avoid native java
serialization completely and find an alternative way to
implement remoting that will work with both pojo and CDO
objects. Again, maybe others have negotiated a successful
path through this ...

e. Extending from d, I see the serialization that CDO-Net4j
uses .. has anyone, or would it be easy to extend this
to support serialization for a generic pojo ?

thanks for any pointers
davidv
Previous Topic:[Teneo/EclipseLInk] ORM Generator and multiple inheritance
Next Topic:[CDO] Transaction Exception
Goto Forum:
  


Current Time: Fri Apr 26 03:30:47 GMT 2024

Powered by FUDForum. Page generated in 0.03351 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top