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 Multiple Methods on Multiple Beans | Steps
 
Steps
1. Using Designer, create a flow consisting of the following adapter service calls:
a. CreateEJB 2.1 or FetchEJB 3.0 (one for each of the EJBs to be created or fetched)
b. Corresponding InvokeEJB 2.1 or InvokeEJB 3.0 (one for each of the distinct method calls)
c. RemoveEJB (one for each EJB created, only for 2.1 services)
2. Edit the flow to map the output of the CreateEJB 2.1 or FetchEJB 3.0 (the bean objects) calls to the corresponding input bean object in each of the corresponding InvokeEJB 2.1 or InvokeEJB 3.0 calls and the RemoveEJB calls (only for 2.1 services).
Important:
Be careful when naming instances of these CreateEJB 2.1 or FetchEJB 3.0 and InvokeEJB 2.1 or InvokeEJB 3.0 adapter services to avoid mismatching them. If a pair of CreateEJB 2.1/InvokeEJB 2.1 or FetchEJB 3.0/InvokeEJB 3.0 services are mismatched in a flow, this condition will not be detected until that flow is executed. For more information, see InvokeEJB 2.1 Adapter Service and InvokeEJB 3.0 Adapter Service.
3. Execute the flow and enter the appropriate method inputs (if any) when prompted.
4. Observe the results in the flow's output:
*A successful status for each EJB create or fetch service invocation
*A successful status for each of the bean method invocations
*The results of each bean method invocation
5. For information about the CreateEJB 2.1, FetchEJB 3.0, InvokeEJB 2.1, and InvokeEJB 3.0 adapter services, see Adapter Services. For information about the RemoveEJB service, see Removing EJBs.