Coffee Cram: Mock Exam

  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.

    C.

    Getting a session object’s EJBMetaData.

    D.

    Getting a session object’s handle.

  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.)

    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 narrowed result cast.

    D.

    The result of the JNDI lookup must be cast to an initial context, ...

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.