Obtaining an EJB
To obtain an EJB object, you can use either a CreateEJB 2.1 or FetchEJB 3.0 adapter service or a CreateInvokeEJB 2.1 or FetchInvokeEJB 3.0 adapter service. The EJB object returned can be a single EJB object, or multiple EJB objects. Multiple EJB objects are all of the same type.
The following sections explain how to:
![*](chapterTOC_bullet.png)
Pass a single EJB object generated by calling a configured CreateEJB 2.1 or FetchEJB 3.0 adapter service instance to a corresponding configured InvokeEJB 2.1 or InvokeEJB 3.0 adapter service instance.
![*](chapterTOC_bullet.png)
Use a loop to pass a single EJB object generated when multiple EJBs are returned by CreateEJB 2.1 or FetchEJB 3.0.
![*](chapterTOC_bullet.png)
Use services to pass third-party or user-defined objects.