tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Mixon" <>
Subject RE: serializing java code
Date Tue, 24 Jan 2006 07:24:58 GMT
Your "code" does not really get "serialized". You just have to be sure that
you are not storing any objects in the Session that are not Serializable -
i.e. they must implement the interface

For many of your custom object types it may be as simple as just
implementing the Serializable interface. But if any of your objects have
database connection, or other information that cannot be readily serialized
- this will take a bit more thought.

I'm not aware of a tool that would do this for you - it would be magic :)

When I moved an application to a Tomcat cluster a while back, it turned up a
number of objects that I did not realize were Serializable, including Log4J
loggers. It took a bit of rework, but probably was all done within a half of
a day.

HTH - Richard

-----Original Message-----
From: Nehal Sangoi [] 
Sent: Monday, January 23, 2006 11:32 PM
To: Tomcat Users List (E-mail)
Subject: serializing java code


I need to serialize my existing java code for implementing Tomcat Clustering
feature. Is there any ready-made tool which does the job easily? Otherwise,
manually, how can i convert my existing code into serialized format?


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message