• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

EJB and Security Quizzes from Sun

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Security Quiz
EJB Quiz
Enjoy
 
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also at :
http://www.javaranch.com/ubb/Forum26/HTML/000249.html
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic