Adapter for Enterprise JavaBeans 6.5 SP3 | webMethods Adapter for Enterprise JavaBeans Documentation | webMethods Adapter for Enterprise JavaBeans Installation and User’s Documentation | Scenarios | Running a Single Method on Multiple Beans of the Same Type | Alternative 1 | Steps
 
Steps
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:
*A successful status for the EJB create method invocation
*A successful status for each of the bean method invocations
*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.