Package javax.ejb

Annotation Interface LocalBean


@Target(TYPE) @Retention(RUNTIME) public @interface LocalBean
Designates that a session bean exposes a no-interface view.

This annotation is required if a session bean exposes any other client views (local, remote, no-interface, 2.x Remote Home, 2.x Local Home, Web Service) in addition to the no-interface view or its implements clause contains an interface other than java.io.Serializable; java.io.Externalizable; or any of the interfaces defined by the javax.ejb package.

This annotation is optional if a session bean exposes only a no-interface view.

Since:
EJB 3.1