Your EJB can use EJB references to instantiate proxies for other EJBs. You do not need to create references in order to invoke other EJBs from your code. However, doing so ensures that EJB references will be cataloged in the deployment descriptor if you export the EJB. There are two types of references:
Local references, for calls to EJB components hosted in the same server using the local home and local interfaces. To add or edit local references, follow the instructions in “Adding an EJB local reference”, or “Editing an EJB local reference”, respectively.
Remote references, for calls to components of any type using the component’s home and remote interfaces. To add or edit remote references, follow the instructions in “Adding an EJB reference”, or “Editing an EJB reference”, respectively.
Stubs used for EJB references must be in the custom class list You must list stubs used for intercomponent calls in the custom class list for your component, as described in “Custom class lists for Java and EJB components”.
Copyright © 2005. Sybase Inc. All rights reserved. |