File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes doubt in stateful session bean passivation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "doubt in stateful session bean passivation" Watch "doubt in stateful session bean passivation" New topic

doubt in stateful session bean passivation

Shanmugam Karthikeyan
Ranch Hand

Joined: Aug 02, 2002
Posts: 58
1. Which are true about Session bean passivation?

A) Passivation always uses Serialization.
B) A bean can be removed even while in a passivated state.
C) A bean can be passivated even while in a transaction.
D) Both stateless and stateful session beans can be passivated.
E) A UserTransaction reference cannot be passivated.
F) A 'Connection' reference cannot be passivated.
G) A resource manager connection factory reference cannot be passivated.
H) A reference to a bean's privated JNDI environment can be passivated.
I) A null reference can be passivated.
J) Under some circumstances, the bean might be passivated *without*
getting an ejbPassivate method call.

ANS given : B,C,F,H,I - how come option c is possible
my answer : b,f,h,i

SCJP 1.4<br />SCWCD 1.4<br />SCBCD 1.3
Ugender Rekulampally
Ranch Hand

Joined: Nov 14, 2005
Posts: 135
yes, you are right. choice 'C' is wrong.

Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
i am not clear abt options h & i.
**i think there is no use of passivating null reference.
**plz clarify beans private JNDI environment.
I agree. Here's the link:
subject: doubt in stateful session bean passivation
It's not a secret anymore!