Two Laptop Bag
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes a mock question 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 "a mock question " Watch "a mock question " New topic

a mock question

chao cai
Ranch Hand

Joined: May 26, 2005
Posts: 154
27. Which will survive an EJB server crash? (choose all that
A) Stateful session bean instances
B) Stateless session bean instances
C) Message-driven bean instances
D) An entity bean's primary key
E) An entity
the answer is d,
but i think the answer is d,e

SCEA<br />SCJP 1.2<br />SCBCD<br />MCSD<br />IBM Certified Specialist RUP v2003<br />IBM Certified Solution Designer OOAD vUML2<br /> <br />Phone Number:86-010-82776427
Prathibha Bharathi

Joined: Aug 17, 2005
Posts: 15
From the spec page no:48
The entity, its primary key, and its remote reference survive the crash of the EJB Container. If the state of an entity was being updated by a transaction at the time the container crashed, the entity�s state is automatically reset to the state of the last committed transaction. The crash is not fully transparent to the client�the client may receive an exception if it calls an entity in a container that has experienced a crash.

So, I too think, the answer is d,e
Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Once the client terminates, the session Bean terminates. In case of an EJB server crash, all session Beans are destroyed. But, Entity beans can survive EJB server crashes. Any EJB server crash is always transparent to the client.
I agree. Here's the link:
subject: a mock question
jQuery in Action, 3rd edition