• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ejb question

 
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic