users@glassfish.java.net

Serialize / Deserialize subclasses?

From: <forums_at_java.net>
Date: Tue, 20 Sep 2011 15:18:43 -0500 (CDT)

I have a class that I can serialize / deserialize from a jersey/REST client
to server.  I created a subclass off that class and want to send it from
client to server as well.  I added the jersey/rest @xxx artifacts to the
subclass to identify it as a jersey/REST resource.  Unfortunately the child
class type is never deserialized on the server .  I always get the parent
class type.  Same is true going the other way.  I create a subclass on the
server and send it to the client.  The client always gets the superclass. 
Any hints for getting a subclass across the void?

Thanks!

Dave


--
[Message sent by forum member 'dawall']
View Post: http://forums.java.net/node/845168