This content has been marked as final.
Show 1 reply
-
1. Re: Ejb database connection serialization.
adrian.brock Jan 8, 2002 10:59 PM (in response to gordonlch)You need to take over serialization of your class.
Instead of
ObjectOutputStream.writeObject(connection);
do
ObjectOutputStream.writeObject(informationToGetConnection);
and instead of
ObjectInputStream.readObject(connection);
do
ObjectInputStream.readObject(informationToGetConnection);
connection = getConnection(informationToGetConnection);
Be careful with where your object is transferred to.
If it goes over a network and you put a password
in the stream somebody can sniff it,
it probably won't be encrypted.
Regards,
Adrian