You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Meddle Smeddle <me...@gmail.com> on 2007/09/26 15:42:48 UTC

How to log the serialization of object in wicket

Hello. Is there a simple way to log all the object which has been
serialized by wicket?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to log the serialization of object in wicket

Posted by Meddle Smeddle <me...@gmail.com>.
We want to see how many objects are serialized in the session and to
try optimize somehow our application.
We want logging like "Object [id] has been serialized", "Object [id]
has been deserialized."

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to log the serialization of object in wicket

Posted by Martijn Dashorst <ma...@gmail.com>.
On 9/26/07, Meddle Smeddle <me...@gmail.com> wrote:
> Hello. Is there a simple way to log all the object which has been
> serialized by wicket?

What do you want to see of those objects? Why do you want to see it?

There is a check that logs exactly which objects *failed* to be serialized.

Furthermore, if you use the file store you can easily load the pages
one by one from the filestore. Just add your web project's classpath
to a new project, and create a program that deserializes one of the
pages. You can then browse the component hierarchy using your
debugger. I've used this technique once and it works like a charm,
though I don't have the code anymore.

Martijn

-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org