Steps
1. Using Designer, create a flow consisting of the following adapter service calls:
a. CreateEJB 2.1 (to retrieve the EJB instances)
b. InvokeEJB 2.1 (the method to run on each instance)
c. RemoveEJB (to release each of the bean instances)
2. Edit the flow to wrap the InvokeEJB 2.1 and RemoveEJB steps in a loop that will execute once for each EJB instance returned by the CreateEJB 2.1 step.
3. Edit the flow to map the current EJB instance (a bean object) in the loop to the corresponding input parameter of the InvokeEJB 2.1 and RemoveEJB steps.
4. Execute the flow and enter the appropriate method inputs (if any) when prompted.
5. Observe the results in the flow's output:
![*](chapterTOC_bullet.png)
A successful status for the EJB create method invocation
![*](chapterTOC_bullet.png)
A successful status for each of the bean method invocations
![*](chapterTOC_bullet.png)
The results of each bean method invocation
6. For information about the CreateEJB 2.1 and InvokeEJB 2.1 adapter services, see
Adapter Services. For information about the RemoveEJB service, see
Removing EJBs.