Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Question from the EJB 3 specs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Question from the EJB 3 specs" Watch "Question from the EJB 3 specs" New topic
Author

Question from the EJB 3 specs

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

From the following lines,

The container must be able to properly save and restore the reference to the business interfaces and
home and component interfaces of the enterprise beans stored in the instance�s state even if the classes
that implement the object references are not serializable.


I'm not able to get "even if the classes
that implement the object references are not serializable"?

Which object references do they mean?


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Mirko Bonasorte
Ranch Hand

Joined: May 14, 2007
Posts: 244
Hi,
for example, you may have an EJB X that has references another EJB Y. Let's suppose that the application server decides to passivate X: when reactivating EJB X, the application server also restores the reference to Y, even if its interface (remote or local) does not extend java.io.Serializable.


SCJP<br />SCWCD 1.4 Upgrade (Remember: me stupid)<br />SCWCD 1.4<br /><a href="http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html" target="_blank" rel="nofollow">SCBCD 5.0</a><br /><a href="http://www.enthuware.com" target="_blank" rel="nofollow">SCBCD 5.0 mock exam</a> <br /> <br />SCEA 5 Part1: Preparing...
 
 
subject: Question from the EJB 3 specs
 
Similar Threads
Serialization
Regarding serialization
Question about ejbActivate and ejbPassivate
Can we pass this object on wire?
POJO implements Serializable - Why ???