Adapter for Enterprise JavaBeans 6.5 SP3 | webMethods Adapter for Enterprise JavaBeans Documentation | webMethods Adapter for Enterprise JavaBeans Installation and User’s Documentation | Invoking webMethods Services From an EJB | Basic Flow of Events
 
Basic Flow of Events
Note:
The EJB must have access to the client jar file containing classes needed to engage in a request-response dialogue with Integration Server.
At a high level, the steps to invoking an IS service from an EJB are as follows:
1. On the application server, create and deploy an EJB that uses the webMethods APIs in client.jar for the purpose of executing a service on Integration Server.
2. The EJB creates a context (connection) with Integration Server, providing a URL, user name, and password.
3. The EJB constructs an IData pipeline, if necessary, inserting appropriate service input values.
4. The EJB posts to Integration Server a request containing a valid service name and the pipeline constructed in step 3.
5. The EJB receives a response from Integration Server and uses the provided APIs to access and process the values contained in the returned IData pipeline.
6. The EJB successfully receives and processes the desired results from the service it executed.