aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes ejb question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "ejb question" Watch "ejb question" New topic
Author

ejb question

Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
8. Which statement about the life cycle of a session bean is true?
A. The data in a stateful session bean survives a server's crash
B. A server that has crashed and been restarted can deserialize cached data for a stateful session bean
C. A session bean instance can be recreated through the use of a handle.
D. The container can passivate a stateless session bean to free resources
answer is c.
if bean instance and its home crash ,can the handle that client holds be used to recreate bean instance through the use of a handle?
can entity bean be recreated through the use of a handle?


SCJP<br />SCWCD<br />SCEA
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Originally posted by Timber Lee:
if bean instance and its home crash ,can the handle that client holds be used to recreate bean instance through the use of a handle?

AFAIK No. A RemoteException will be thrown if for some reason the bean instance cannot be created.


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
k space
Ranch Hand

Joined: Jun 25, 2002
Posts: 104
Entity bean (same as session bean) can be recreated through the use of a handle. Bear in mind that stateful session bean has no way to survive a server's crash or restart, but entity bean can as it is backed by a data store.


SCEA | SCBCD | SCWCD | SCJP - The kSpace
 
wood burning stoves
 
subject: ejb question