@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 will connect 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 will be used in the vendor-specific deployment descriptors. false
local-jndi-name text   Provides the JNDI name of the bean that will be 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
Related reference
@ejb.bean
@ejb.create-method
@ejb.ejb-external-ref
@ejb.ejb-ref
@ejb.env-entry
@ejb.facade-method
@ejb.finder
@ejb.home
@ejb.home-method
@ejb.interface
@ejb.interface-method
@ejb.permission
@ejb.persistence
@ejb.persistence (method)
@ejb.pk
@ejb.pk-field
@ejb.relation
@ejb.remote-facade
@ejb.resource-env-ref
@ejb.resource-ref
@ejb.security-identity
@ejb.security-role-ref
@ejb.select
@ejb.session
@ejb.transaction
@ejb.util
@ejb.value-object
@ejb.value-object-method
Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.