• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jave Beat Question

 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic