Package jakarta.ejb
Annotation Type Remote
-
@Target(TYPE) @Retention(RUNTIME) public @interface Remote
Declares the remote business interface(s) for a session bean.The
Remoteannotation is applied to the session bean class or remote business interface to designate a remote business interface of the bean.When used on an interface, designates that interface as a remote business interface. In this case, no
valueelement should be provided.The
Remoteannotation applies only to session beans and their interfaces.- Since:
- EJB 3.0
-
-
Element Detail
-
value
Class[] value
Specifies the remote business interface(s) of the bean. Thevalueelement 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:- the bean class does not implement its remote business interface
- at least one of the implemented interfaces is designated as a local interface
- the bean class implements two or more interfaces and at least one of the implemented interfaces is designated as
a remote business interface using
Remoteannotation on the interface, and at least one other interface (excludingjava.io.Serializable,java.io.Externalizable, and any of the interfaces defined by thejakarta.ejbpackage) has no designation.
- Returns:
- an array of
Classobjects.
- Default:
- {}
-
-