Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mock Exam Question

 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
27. Which will survive an EJB server crash? (choose all that apply)
A) Stateful session bean instances
B) Stateless session bean instances
C) Message-driven bean instances
D) An entity bean's primary key
E) An entity
My answer is E, but the mock exam answer is D. What do you think?
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The entity in the underlying persistent store should always survive a server crash.
Furthermore, an entity bean will survive a server crash if the entity still exists and the bean type is still deployed.
 
Sujatha Kumar
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Answer is defintely "D"
 
Anselm Paulinus
Ranch Hand
Posts: 390
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sujatha Kumar;
You did not give any reasons why you choosed D as the answer.
Personally, I think E is one of the answers even if D is right because an entity resides in a persistent storage and as a result should survive a server crash. Somehow D could be inferred from E, since an entity in a relational data base must have a primary key.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic