my dog learned polymorphism*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes EJB and Security Quizzes from Sun Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "EJB and Security Quizzes from Sun" Watch "EJB and Security Quizzes from Sun" New topic

EJB and Security Quizzes from Sun

scott irwin
Ranch Hand

Joined: Aug 07, 2000
Posts: 87
Security Quiz
EJB Quiz
Madhu Juneja
Ranch Hand

Joined: Mar 10, 2001
Posts: 176
Also at :
Olivier Stembert

Joined: May 15, 2001
Posts: 5
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
scott irwin
Ranch Hand

Joined: Aug 07, 2000
Posts: 87
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.
Michael Chang
Ranch Hand

Joined: Jan 08, 2001
Posts: 31
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.
scott irwin
Ranch Hand

Joined: Aug 07, 2000
Posts: 87
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.
I agree. Here's the link:
subject: EJB and Security Quizzes from Sun
Similar Threads
EJB quiz
Sun Quizzes to prepare SCEA part I
EJB Quiz ?
What J2EE test question might look like?
quizz from sun