• 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

mock exam -responsibilities - EJB container

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which of the following statements are correct about the responsibilities of the EJB container

1. When the container invokes the ejbRemove() method the container removes immediately the entity from the database.

Answer 1 is incorrect, the container may delete the representation of the entity in the database immediately, or it can defer it to a later time, depending on the caching strategy that it uses.
*******************************************************

Is it correct. Or As per the Spec,can we conclude whenever ejbremove() is called the container removes immediately

Thomas
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As per specs 10.5.3

The container removes the ejb bean from all its relationships in which it is participating and then removes the entity object�s persistent representation(ejb object) when ejbRemove is called.The container may delete the entity in database imediately or it can defer it to a later time (for example to the end of the transaction), depending on the caching strategy that it uses.
So, that is correct.

bhilla
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic