users@glassfish.java.net

Re: Object Serialization Performance

From: Stephen Connolly <stephen.alan.connolly_at_gmail.com>
Date: Fri, 19 Dec 2008 14:32:22 +0000

I suspect you have some cascaded relationships that are being transferred
over too

2008/12/19 <glassfish_at_javadesktop.org>

> I have partially found the cause of my problem.
>
> On the server, my EJB Entities are stored using JPA (TopLink). So there are
> JPA annotations in my entities.
>
> Instead of sending directly my entities to the client, I tried to "copy" my
> entities into POJO objects (without annotations). The result is impressive :
> before the serialization took 3.6 MB and now it takes only 50 KB.
>
> In the attached files, you can see a piece of the dump for both cases.
>
> My question now : Is it possible to serialize Entites without the
> annotations ?
> [Message sent by forum member 'nlsbo' (nlsbo)]
>
> http://forums.java.net/jive/thread.jspa?messageID=322636
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>