It's not a secret anymore!
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes mock question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "mock question" Watch "mock question" New topic
Author

mock question

Prashant Neginahal
Ranch Hand

Joined: Sep 14, 2002
Posts: 77
Which of the following statements are requirements for a session bean's session bean class? [Check all correct answers]

1. The class must implement the javax.ejb.SessionSynchronization interface.
2. The class must implement the javax.ejb.SessionBean interface.
3. The class may implement the session bean's component interface.
4. The class can be declared final.
5. If the class is a stateful session bean, the constructor must declare parameters to initialise the session state.

Ans are 2 and 3.

Can somebody explain how 3rd answer is correct?

Thanks,
Prashant


Thanks, <br />Prashant<br />SCJP, SCBCD
Ana Nava
Greenhorn

Joined: May 25, 2004
Posts: 24
Although you do not declare that your Bean Class implements the Component Interface (you can do it but not advised), yet you are expected to implement all the business methods specified in the Component Interface.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: mock question
 
Similar Threads
Remove vs Remote
Default Constructor....
a mock question
SCBCD :Can a session bean clss implement the session bean's component interface ?
About Default Constructor in a Bean