Adapter for Enterprise JavaBeans 6.5 SP3 | webMethods Adapter for Enterprise JavaBeans Documentation | webMethods Adapter for Enterprise JavaBeans Installation and User’s Documentation | Overview of webMethods Adapter for Enterprise JavaBeans | Adapter Services | CreateInvokeEJB 2.1 Adapter Service | Run-Time Processing for a CreateInvokeEJB 2.1 Service
 
Run-Time Processing for a CreateInvokeEJB 2.1 Service
At run time, a CreateInvokeEJB 2.1 service instance requires any parameter values the home and/or bean methods require for inputs. Its output is the output of the remote bean method itself, if any. The adapter service wraps the bean's output in an array in case multiple objects are returned.
Step
Description
1
An Integration Server client runs a flow service or Java service on Integration Server.
2
The flow or Java service invokes a CreateInvokeEJB 2.1 adapter service on Integration Server.
You configured the adapter service earlier using Designer.
3
The CreateInvokeEJB 2.1 adapter service gets a connection from the service's connection pool.
You created and enabled the adapter connection earlier using Integration Server Administrator.
4
Through its connection, the CreateInvokeEJB 2.1 adapter service accesses the application server's JNDI to look up the EJBHome interface of the EJB for which the service was configured. JNDI will return the remote stub representing this EJBHome.
5
The CreateInvokeEJB 2.1 adapter service invokes the configured EJBHome method on the application server. If the method takes any parameters, the values are extracted from the pipeline and passed to the remote method.
If the operation is successful, the adapter service obtains an array of javax.ejb.Handle instances that represent the remote EJBs.
If the operation is unsuccessful, the adapter service returns an AdapterException or AdapterConnectionException. For more information about how the adapter handles exceptions, see Adapter Logging and Exception Handling.
6
Using the handles obtained in the previous step, the CreateInvokeEJB 2.1 adapter service invokes the configured EJBObject method on the application server. If the method takes any parameters, the values are extracted from the pipeline and passed to the remote method.
If the operation is successful, the adapter service returns the method's output, if any.
If the operation is unsuccessful, the adapter service returns an AdapterException or AdapterConnectionException. For more information about how the adapter handles exceptions, see Adapter Logging and Exception Handling.
7
The CreateInvokeEJB 2.1 adapter service puts the output of the remote method invocation and the status on the pipeline.
8
The CreateInvokeEJB 2.1 adapter service has completed its processing for session EJBs, it calls the EJB-standard remove() method on each EJB object obtained in step 5.