@ejb.ejb-external-ref

Scope: Class

Multiplicity

(0..*): You can use this tag zero to many times in the Java™ source file.

Purpose

This tag defines an EJB reference to a bean that will be packaged in a different EJB JAR file. Applies to all types of EJBs.

Parameters

Parameter Type Applicability Description Mandatory
view-type text   The view-type of the referenced bean. You must specify one of the following attributes:
  • local
  • remote
true
link text   Defines an ejb-link to the referenced EJB. The value of the ejb-link element is the name of the target enterprise bean. (It is the name defined in the ejb-name element of the target enterprise bean.) The target enterprise bean can be in any EJB JAR file in the same J2EE application as the referencing application component. false
ref-name text   The name by which the referenced bean will be referred. For example, reference to the bean, Customer, java:comp/env/ejb/Customer name should be ejb/Customer. The default value is ejb/[ejb-name], where [ejb-name] is the name of the referenced bean. true
ejb-name text   The name by which the referenced bean will be referred. For example, reference to the bean, Customer, java:comp/env/ejb/Customer nameshould be ejb/Customer. The default value is ejb/[ejb-name], where [ejb-name] is the name of the referenced bean.

[Deprecated.] Use ref-name instead.

false
type text   The type of EJB being referenced. You must specify one of the following attributes:
  • Entity
  • Session
The default value is
  • Entity
true
home text   The fully qualified class name of the home interface of the referenced bean. true
business text   The fully qualified class name of the business interface (local or remote interface) of the referenced bean. true
remote text   Synonym for business parameter. It only works if the view-type is remote.

[Deprecated]

false
Related reference
@ejb.bean
@ejb.create-method
@ejb.ejb-ref
@ejb.env-entry
@ejb.facade
@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.