Lukasz - Sorry if this is a dumb question, but where and how do I call the readObject() method that you suggested?
On Tue, Jan 26, 2021 at 6:33 AM Burton Rhodes <[email protected]> wrote: > Many thanks... I will give that a try! > > > On Tue, Jan 26, 2021 at 1:51 AM Lukasz Lenart <[email protected]> > wrote: > >> pon., 25 sty 2021 o 19:52 Burton Rhodes <[email protected]> >> napisał(a): >> > public class OpenSessionBackgroundProcess extends BackgroundProcess { >> >> BackgroundProcess is marked as Serializable so container can >> temporarily store it on disk >> >> > private Object lock = new Object(); // used for synchronization >> >> I would mark this as transient and add >> >> private void readObject(ObjectInputStream inputStream) throws >> IOException, ClassNotFoundException { >> lock = new Object(); >> } >> >> maybe it will help >> >> >> Regards >> -- >> Łukasz >> + 48 606 323 122 http://www.lenart.org.pl/ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >>

