@ejb.facade

Scope: Class

Multiplicity

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

Purpose

This tag allows the generation of a session facade EJB for entity beans. Facade EJB provides all finder and creation methods to outside, and also provides all data-setting methods for data and value objects. Finder methods return collections of data or value objects, instead of remote interfaces. A facade bean connects to the EJB using local (if generated) or remote interfaces. Resulting bean needs to be processed together with all EJB classes. Applies to Entity Beans. [Optional]

Parameters

Parameter Type Applicability Description Mandatory
name text   The name of generated facade EJB. The default value is
  • {0}Facade
false
description text   A description of the bean. Defaults to the first sentence of the class-level Javadoc comment of the bean class. false
display-name text   The display name of the bean. false
small-icon text   The small icon for the bean. false
large-icon text   The large icon for the bean. false
jndi-name text Remote Session beans and Entity beans Provides the JNDI name of the bean that is used in the vendor-specific deployment descriptors. false
local-jndi-name text   Provides the JNDI name of the bean that is used in the vendor-specific deployment descriptors. It is the JNDI name for the local EJB. false
view-type text   Indicates what view-type is supported by the bean. You must specify one of the following attributes:
  • local
  • remote
  • both
The default value is
  • remote
false
type text   Defines the type of the bean. You must specify one of the following attributes:
  • Stateless
  • Stateful
The default value is
  • Stateless
true
transaction-type text   Defines the transaction-type of the bean. You must specify one of the following attributes:
  • Container
  • Bean
The default value is
  • Container
false

Feedback