*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Spec Page 48 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Spec Page 48" Watch "Spec Page 48" New topic
Author

Spec Page 48

Ankit Doshi
Ranch Hand

Joined: Dec 04, 2002
Posts: 222
Section 4.3.2 on Page 48 of the spec says that
The entity, it's primary key and it's remote reference survive the crash of EJB Container.


I understand for entity and it's primary key, but what about remote reference? How does that survive container crash?
Ankit Doshi
Ranch Hand

Joined: Dec 04, 2002
Posts: 222
Can someone please help explain?


Thanks,
Ankit
Balaji VR
Ranch Hand

Joined: Mar 22, 2006
Posts: 76
The spec states the EJBObject as Remote interface here.


Bala<br />SCJP 1.4 98%<br />SCBCD 1.3 -- 88%
Ankit Doshi
Ranch Hand

Joined: Dec 04, 2002
Posts: 222
True, it refers to the EJBObject here ... but, the actual EJBObject resides on the server side and the client only gets reference to the EJBObject, so how does the EJBObject survive the container crash??
Balaji VR
Ranch Hand

Joined: Mar 22, 2006
Posts: 76
As you know, lot of things mentioned in SPECS should n't be interpreted as their true meaning :-) The container says, if I experience a crash, my entities are safe in persistent store. So, the client, when it refers to the entity again, I will wrap it in a bean instance (which is obviously picked up from pool), then assign an EJBObject to it and return it back!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spec Page 48