• Card 6 / 59: What components do you need to declare an EJB using EJB 2.x ? choose the answer that covers the most components
    A) EJBHome interface, EJBObject and XML deployment descriptor
    B) EJBHome interface, EJBObject, XML deployment descriptor and a bean class extends either SessionBean or EntityBean
    C) EJBHome interface, EJBObject, XML deployment descriptor and a bean class annotated by either @SessionBean or @EntityBean

    Answer:
    B) EJBHome interface, EJBObject, XML deployment descriptor and a bean class extends either SessionBean or EntityBean

  • Keyboard Shortcuts

    Previous Card ← Previous Card Button
    Next Card → Next Card Button
    Flip Card Space-Bar
<< First < Previous Next > Last >>

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now
Explanation:

Annotations are used in EJB 3.x not prior to that, so annotating a bean

class by either @SessionBean or @EntityBean is not correct in EJB 2.x.

In EJB 2.x we need:

1. Home (EJBHome) interface

2. Remote (EJBObject) interface

3. XML deployment descriptor

4. Bean class extends SessionBean or EntityBean

5. Context objects (not written by developers, rather generated by the container)

Hide Choices Interactive Question Quiz Home Page
Flash Cards plugin by Curtis Blackwell github.com/curtisblackwell/flash_cards
Google Play and the Google Play logo are trademarks of Google Inc.
Ask
Caitlyn Gobble
Start Exam
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/enterprise-javabeans-ejb" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>