public @interface Local
Local annotation is applied to the session bean class or local business interface to designate a
local interface of the bean.
When used on the bean class, declares the local business interface(s) for a session bean. When used on an interface,
designates that interface as a local business interface. In this case, no
value element should be
Local annotation applies only to session beans and their interfaces.
Use of the
Local annotation is required when the bean class exposes one or more local business interface
and any of the following is true:
Remote annotation on the interface, or in the
The following interfaces are excluded when determining whether the bean class has business interfaces:
java.io.Externalizable; any of the interfaces defined in
|Modifier and Type
|Optional Element and Description
Specifies the local business interface(s) of the bean.
public abstract java.lang.Class value
value element is specified only when the
annotation is applied to the bean class. It is only required to be specified if any of the following is true:
Local annotation on the interface, and at least one other interface
java.io.Externalizable, and any of the interfaces defined
jakarta.ejb package) has no designation.