When a developer declares an EJB local reference, what element does NOT need to be specified?
-
JNDI binding for local home interface
-
Local home interface
-
Home interface
-
ejb-ref-type
When declaring an EJB local reference, you specify: the local home interface (B), the reference type (ejb-ref-type), and the JNDI binding name (A). You do NOT specify the (remote) home interface (C) because local references are exclusively for local interfaces - mixing local and remote in the same reference is invalid. Local references use LocalHome and Local (or LocalBusiness) interfaces only, not remote Home interfaces.
For an EJB local reference (ejb-local-ref in deployment descriptors), you must specify the ejb-ref-type, the local home interface class, the local component interface, and (for lookup) the JNDI binding for the local home. The remote Home interface is specific to remote EJB references and is irrelevant to a local reference — local clients use the local home interface instead. So "Home interface" is the element that does NOT need to be specified when declaring a local reference, since it belongs to the separate remote-invocation contract, not the local one.