This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Jave Beat Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Jave Beat Question " Watch "Jave Beat Question " New topic
Author

Jave Beat Question

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Which of the following declarations in the XML Deployment Descriptor correctly defines an enterprise Stateful session bean with Bean managed transaction semantics with a name 'NotifierBean' whose implementation class is 'net.javabeat.ejb3.NotifierBean' and the remote business interface is defined as 'net.javabeat.ejb3.Notifier'?
a. <session>
<ejb-name>NotifierBean</ejb-name>
<ejb-class>net.javabeat.ejb3.NotifierBean</ ejb-class>
<remote>net.javabeat.ejb3.Notifier</remote>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
</session>
b. <session>
<ejb-name>NotifierBean</ejb-name>
<ejb-class>net.javabeat.ejb3.NotifierBean</ ejb-class>
<business-remote>net.javabeat.ejb3.Notifier</business-remote>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
</session>
c. <session>
<ejb-name>NotifierBean</ejb-name>
<ejb-class>net.javabeat.ejb3.NotifierBean</ ejb-class>
<business-remote>net.javabeat.ejb3.Notifier</business-remote>
<session>Stateful</session>
<transaction-type>Bean-managed</transaction-type>
</session>
d. None of the above.


Should option 'a' be the correct answer?


"Know where to find the solution and how to use it - that's the secret of success."
leonardo segala
Greenhorn

Joined: Sep 02, 2009
Posts: 26
Yes! The buisiness-remote element don't exists, so the alternatives b and c are automatically wrongs. The alternative a is correct, because define minimum elements to declare a bean.
 
jQuery in Action, 2nd edition
 
subject: Jave Beat Question
 
Similar Threads
one EJB from other EJB
setRollbackOnly() doesn't work
JNDI name not found error!!
error in deploying stateful bean in weblogic 8.1
Seting instance pool limit for stateful session bean