-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Imad,

On 11/2/2009 11:17 PM, Imad Hachem wrote:
> <distributable/> has been set in my Web application web.xml

Okay, make sure it stays that way.

>       private String sessionID = "";
>       private HashMap md5Keys = new HashMap();
>       private SecretKey secretKey = null; 

String and HashMap (as long as you don't store non-serializable objects
in it) are both Serializable.

Since SecretKey is not itself Serializable, you might want to customize
the serialization of this class. If the SecretKey object itself is
serializable, go ahead and use Java's serialization. Otherwise, manually
serialize it using SecretKey.toEncoded() or something like that.

>       public QueryCryptUser(String sessionid, SecretKey key)
>       {
>               super();
>               // TODO Auto-generated constructor stub
>               secretKey = key;
>               sessionID = sessionid;
>       }

In order to allow de-serialization, your class must have a no-arg
constructor. Read a tutorial on Java Serialization such as this one:

http://www.j2ee.me/developer/technicalArticles/Programming/serialization/

...and I think it may help you fix your classes to they may be
replicated successfully across your cluster.

Good luck,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrwjIwACgkQ9CaO5/Lv0PDeawCghgS3ztc5UCCrJuKO8EE7caWc
iRMAnRp3M8c1Bn1L421oWXDlNe57LCJf
=lQRZ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to