• Post Reply Bookmark Topic Watch Topic
  • New Topic

References to EJB Object  RSS feed

 
Sethu Kumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can 2 clients can have reference to EJB Object?
Could somebody explain some practical/project related scenario where they have implemented SessionSynchronization
In EJB Richard/Mon.. book.. it says
EJB 1.0 is based on Simple RMI. So all param/return type should be either primtive type or serialized object (pass by value)
EJB 1.1 is based on RMI-IIOP. (Is it correct?)
SO in EJB 1.1 we can have retrun type/method param which is of Remote Type.
Does that mean we cant have Remote type in method parm/return type in EJB 1.0?
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EJB container ensures synchronized access to its remote methods in order ensure internal integrity.
Items returned by an EJB method have to be serializable because the remote mechanism needs to have a way to push those items over a non-java, 1-dimensional interface. Primitive types are inherently serializable, since all JVMs have a common understanding. Class types have to state their serializability in order to be eligible. Any objects internal to the class have to be serializable as well, of course.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!