The 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
provided.
The 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:
Local or Remote annotation on the interface, or in the
deployment descriptor
The following interfaces are excluded when determining whether the bean class has business interfaces:
java.io.Serializable; java.io.Externalizable; any of the interfaces defined in
jakarta.ejb.
| Modifier and Type | Method and Description |
|---|---|
| public Class | Returns: an array ofjava.lang.Class objects.Specifies the local business interface(s) of the bean. |
| value | back to summary |
|---|---|
| public Class Specifies the local business interface(s) of the bean. The
| |