• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mock exam -responsibilities - EJB container

 
Thomas Vezhambacheril
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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
 
bhilla ratna
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic