@ejb.interface

Scope: Class

Multiplicity

(0..1): You can use this tag zero or one time in the Java™ source file.

Purpose

This tag provides information about the local or remote component interfaces for entity or session Beans. It does not apply to message-driven beans. Applies to both entity and session beans.

Parameters

Parameter Type Applicability Description Mandatory
extends text   Declares which interface the generated remote interface extends. The default value is
  • javax.ejb.EJBObject
false
local-extends text Session and Entity beans, EJB 2.0 Declares which interface the generated local interface extends. The default value is
  • javax.ejb.EJBLocalObject
false
generate text   Specifies which interfaces to generate. You must specify one of the following attributes:
  • true
  • false
The default value is
  • true
false
remote-class text   The fully qualified name of the remote interface. false
local-class text Session and Entity beans, EJB 2.0 The fully qualified name of the local interface. false
remote-pattern text   The pattern to be used in determining the unqualified name of the remote interface. Use this only if remote-class is not present. false
local-pattern text Session and Entity beans, EJB 2.0 The pattern to be used in determining the unqualified name of the local interface. Use this only if local-class is not present. false
pattern text   The pattern to be used in determining the unqualified name of either local or remote interfaces. Use only where -class and -pattern tags for the bean are absent. false
remote-package text   The package that the remote interface should reside in. Use only where remote-class is not present. Use <packageSubstitution/> to specify the package where the interface resides. false
local-package text Session and Entity beans, EJB 2.0 The package that the local interface should be placed in. Use only where local-class is not present. Use <packageSubstitution/> to specify the package where the interface resides. false
package text   The package that the interfaces should be placed in. Use only where -class and -package are not present. Use<packageSubstitution/> to specify the package where the interface resides. false

Feedback