-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stanimir,
On 2/11/2009 10:10 AM, Stanimir Komitov wrote: > when the application is restarted, the session scoped beans are > serialized on stop and restored on requesting the same session after > start, but when the class is deserialized, transient fields are null. > Is there any "easy" way to restore transient fields references from the > new session or at deserialization to get only available fields from the > object, not the whole object? How about using the standard serialization framework built-into Java. You've come up with the right idea, you just haven't researched it: http://java.sun.com/developer/technicalArticles/Programming/serialization/ http://www273.pair.com/med/columns/Durable4.html ...or any other Java Serialization tutorial will show you how to customize the process of deserialization. As long as you have enough non-transient information in the object to re-build that transient information, you should be fine. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmTAUEACgkQ9CaO5/Lv0PBBcACeO2jPGz+ialJohaBfRCGo7IVc 7M4AnR4TD4AjsTg55qc+TXi+ENcemuJQ =238/ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org