Coffee Cram: Mock Exam Answers
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
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access