-
1. Re: getHandle() equivalant in EJB3
m_pat Jan 25, 2013 4:18 AM (in response to m_pat)Isn't there anybody on the forum who can help me with this problem, has somebody else come across this issue before and managed to work around it?
-
2. Re: getHandle() equivalant in EJB3
ashvish Mar 1, 2013 7:38 AM (in response to m_pat)Hello, I am also looking for a solution for the same problem, have you found any solution yet?
-
3. Re: getHandle() equivalant in EJB3
m_pat Mar 1, 2013 7:54 AM (in response to m_pat)Yes I did find the solution, my apologies for not updating the this thread. Basically there is no need to do anything special, in EJB3 you can simply serialize the remote object directly, i.e.
ObjectOutputStream out =
out.writeObject(remote);
out.close();
And then to deserialize simply read it it again, i.e.
ObjectInputStream in = new ObjectInputStream(new
FileInputStream(serFile));RemoteBean rem = (RemoteBean) in.readObject();
-
4. Re: getHandle() equivalant in EJB3
ashvish Mar 5, 2013 12:50 AM (in response to m_pat)Hi Mukhtar,
Thanks for your reply. For serialization the remote interface need to implement the Serializable interface or not? Also I wonder whether the remote object can be stored in HttpSession as an attribute.
Thanks
Ashok