Chapter 31. Integrating and automating the process 789
Figure 31-31 Generate new WSDL for a new port and binding
11.Make sure that Agent Delivery is selected as port type.
12.Update the source folder, as shown in Figure 31-32 on page 790. Click Next.
790 WebSphere Business Integration Adapters
Figure 31-32 Create skeleton - step 1
13.Select the EJB project that was created earlier and click Finish.
Chapter 31. Integrating and automating the process 791
Figure 31-33 Create skeleton - step 2
14.As before, the project has an error due to a missing library. Open the
properties of the project Process_Start_EJB to correct the error.
792 WebSphere Business Integration Adapters
Figure 31-34 Correct build path
15.Open the source file RM_MaintenanceAgentDeliveryBean.java, where you
find methods for each verb that the business object RM_Maintenance
supports.
16.Locate the RM_MaintenanceCreate method and add a simple print statement
in the user code section. We will update this method later to instantiate the
process.
Chapter 31. Integrating and automating the process 793
Figure 31-35
17.Update the RM_MaintenanceUpdate method in the same way.
Example 31-1 Implementation of the create method
public void RM_MaintenanceCreate(
com
.ibm
.www
.websphere
.crossworlds
._2002
.BOSchema
.RM_Maintenance
.RM_MaintenanceElement argBodyPart) {
// user code begin {method_content}
System.out.println("<<<< Message arrived for Create >>>>");
return;
// user code end
}
18.Right-click the EJB in the Services pane and select Generate Deployment
Code.

Get WebSphere Business Integration Adapters: An Adapter Development and WebSphere Business Integration Solution now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.