EJB 3.0 Message-Driven Bean Component Contract Q & A - Chapter 4 - EJB 3.0 Message-Driven Bean Component Contract

Q & A - EJB 3.0 Message-Driven Bean Component Contract Q & A - Chapter 4 - EJB 3.0 Message-Driven Bean Component Contract

EJB 3.0 Message-Driven Bean Component Contract Q & A Chapter 4 - EJB 3.0 Message-Driven Bean Component Contract

  • 1.

    The env-ref element in the deployment descriptor of an enterprise bean is used to define

    Areferences to other beans

    Breferences to external resources

    Creferences to external resources

    Dreferences to security roles

  • 2.

    A client invokes a method on a Stateful Session bean which resulted in NoSuchObjectException. What are the possible causes ?

    A) The bean had already been removed by the container
    B) The bean had timed out
    C) The ejb server was restarted after the last method call on the bean
    D) The bean is being used by another client
    E) The code in the bean method caused an error
    F) The method parameters passed to the method are invalid

    AA,B and C

    BB,C and D

    CC,D and E

    DE and F

  • 3.

    What value should be returned by the ejbCreate() of a CMP entity bean ?

    Anull

    Bvoid

    CPrimary Key object reference

    DEJBObject reference

    EBean reference

© 2015 by Learncertification All Rights Reserved. The certification names are the trademarks of their respective owners. Terms & Privacy Policy