-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Proxies and Serialization: How do they live together?
PostPosted: Fri Jun 17, 2005 4:45 am 
Regular
Regular

Joined: Tue Jan 06, 2004 3:32 pm
Posts: 80
Location: Munich, Germany
Hello everyone,

When the proxy of a persistent class is being serialized (for example because it is contained in a HTTPSession), the de-serialization fails because the serialization mechanism cannot instantiate the proxy again.

Is the only way to serialize/de-serialize a persistent class by making sure that I don't serialize a proxy instead?

Or can I somehow tell Hibernate or the Proxies to serialize that data exactly as if the proxied class was serialized, including the class name?

How do Proxies and Serialization live together?

Regards,

Andreas


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 17, 2005 6:06 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
proxy is replaced with this class
http://cvs.sourceforge.net/viewcvs.py/h ... iew=markup


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.