:19 PM
Subject: RE: Serialized Java Beans.
Howdy,
It's good practice to make beans that you put in a session Serializable.
Tomcat indeed serializes sessions by default, and if you put a
non-Serializable bean in the session you'll get a runtime exception.
However, tomcat doesn't due this to free
Andoni,
You can't serialize a class if it doesn't implement the
Serializable Interface.
-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 10:17 AM
To: Tomcat Users List
Subject: Re: Serialized Java Beans.
My JavaBeans are being stored
, 2003 5:19 PM
Subject: RE: Serialized Java Beans.
Howdy,
It's good practice to make beans that you put in a session
Serializable.
Tomcat indeed serializes sessions by default, and if you put a
non-Serializable bean in the session you'll get a runtime exception.
However, tomcat doesn't due
Hello,
I recently read that if a JavaBean implements Serializable the servlet engine can
write it to disk if it is not being used and if it's algorithm decides this would be a
good idea.
Can anybody tell me if Tomcat does this? Should I be sure to always implement
Serializable in JavaBeans
it to persist sessions across server restarts.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 10:10 AM
To: Tomcat Users List
Subject: Serialized Java Beans.
Hello,
I recently read that if a JavaBean