File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jave Beat Question
 
Similar Threads
one EJB from other EJB
JNDI name not found error!!
error in deploying stateful bean in weblogic 8.1
Seting instance pool limit for stateful session bean
setRollbackOnly() doesn't work