This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes ejb question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Reply 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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: ejb question
 
Similar Threads
Stateful Session Bean question
how to handle session in EJB
Syncronisation of WAS servers in a cluster
Doubts in Mock exam questions.
My SCEA Part 1Study Notes