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

bean class implementing component interface

 
Krishna Thotakura
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a question from www.ejbcertificate.com
"Which of the following statements are requirements for a session bean's session bean class? [Check all correct answers]"
"The class may implement the session bean's component interface" has been marked as correct answer.
I cant agree with that.
(w.r.t HF-EJB pg85) Bean class should not be able to implement (remote) component interface directly because remote component interface extends EJBObject, and hence implements java.rmi.Remote interface.
I know you can do a simple OOD trick to get around that problem.
Do you see these kind of questions on the actual SCBCD exam ?
I have also seen some mock exams using the word "session object" while they were actually referring to "ejb object" that is tied to the bean instance. Is "session object" a common way of referring to "ejbobject" tied to bean instance?
 
Rashmi Tambe
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even i would not agree with that answer. from compiler's point view, it's perfectly valid and a bean can implement component interface. However, the spec does not expect u to do that and the exam asks about what the spec says....so that is not the correct answer at all !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic