Coffee Cram: Mock Exam Answers

  1. Which capabilities are provided by both remote and local home interfaces for session beans? (Choose all that apply.)

    A.

    Creating a session object.

    B.

    Removing a session object.

    - session beans can’t be removed through a local home interface because there is only a remove() that takes a primary key

    C.

    Getting a session object’s EJBMetaData.

    - not in a local home

    D.

    Getting a session object’s handle.

    - not in a local home

  2. When locating a session bean’s remote home interface, which are steps that must occur to create a valid home interface reference? (Choose all that apply.)

    (spec: 57)

    A.

    The session context must be narrowed, and the narrowed result cast.

    B.

    The result of the JNDI lookup must be narrowed, and the narrowed result cast.

    C.

    The initial context must be narrowed, and the ...

Get Head First EJB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.