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

EJB and Security Quizzes from Sun

 
scott irwin
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Security Quiz
EJB Quiz
Enjoy
 
Madhu Juneja
Ranch Hand
Posts: 176
 
Olivier Stembert
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What interface must the enterprise bean implement so that an application can invoke its operations?
Reponse: javax.ejb.EJBObject
The question is ambiguous: the enterprise bean remote object implements the remote interface which extends javax.ejb.EJBObject but the bean itself implements javax.ejb.SessionBean or javax.ejb.EntityBean
Olivier
 
scott irwin
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The enterprise bean from the client's perspective is not your javax.ejb.XBean. That is just the class the container delegates to. As the application sees it, the remote interface is the javax.ejb.EJBObject.
I'll agree it is fuzzy question. I hope their questions are better than this one.
Scott
 
Michael Chang
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In question 8 of the EJB exam, don't you think the correct answer is C? In the linked document, it says that an EJB is considered created after the data is inserted into the database. In the CMP entity bean, the data is NOT inserted into the database in ejbCreate. It is done by the container after ejbCreate finished. Any opinion is welcome.
Thanks.
 
scott irwin
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael,
They want to know when the instance of the entity bean is created. At the completion of ejbCreate(), the instance is has been fully initialized by the container. All of the attributes have been assigned their values. Check out the spec, section 9.5.2, OID Fig 9-7.
Scott
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic