Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb question

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
k space
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic