EasyBeans

EZB proxy not serializable in IIOP

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: EasyBeans 1.1.0 M1
  • Fix Version/s: EasyBeans 1.1.0 M3
  • Component/s: Core
  • Description:
    The environment of proxy contains the client ORB, that's not serializable.

Activity

Hide
Loris Bouzonnet added a comment - 22/Oct/08 1:00 PM
In fact, that's not a bug since not specified.
Show
Loris Bouzonnet added a comment - 22/Oct/08 1:00 PM In fact, that's not a bug since not specified.
Hide
Florent BENOIT added a comment - 06/Feb/09 2:03 PM
In iiop, the object are not serializable.
You can get the EJB handle that is serializable.
The other way is to follow IIOP guidelines by using the IOR (Identifying Object Reference)

ior = ORB.object_to_string(object);
object = ORB.string_to_object(ior)

ORB is available by using lookup("java:comp/ORB")

Don't forget the call to PortableRemoteObject.narrow(oject, XXX.class) after that you get the object.
Show
Florent BENOIT added a comment - 06/Feb/09 2:03 PM In iiop, the object are not serializable. You can get the EJB handle that is serializable. The other way is to follow IIOP guidelines by using the IOR (Identifying Object Reference) ior = ORB.object_to_string(object); object = ORB.string_to_object(ior) ORB is available by using lookup("java:comp/ORB") Don't forget the call to PortableRemoteObject.narrow(oject, XXX.class) after that you get the object.

People

Dates

  • Created:
    19/Oct/08 3:16 PM
    Updated:
    06/Feb/09 2:03 PM
    Resolved:
    06/Feb/09 2:03 PM