804 WebSphere Business Integration Adapters
Figure 31-46 Add project to server
3. Stop the Test server.
4. Publish the changes to the server.
5. Start the server.
6. When the server has restarted, verify the console output. You should see a
message about the start-up of the MDB, as shown in Example 31-2.
Example 31-2 MDB successfully started
MDB Listener maintenance.process.listener.port started successfully for
JMSDestination jms/wbia/ibm/com/RM2REDCONTRACT.DELIVERY
7. As an additional test, open WebSphere MQ Explorer on the Message Broker
machine and verify MQ queue properties of the REDCONTRACT.DELIVERY
queue. On the Statistics tab, you should see an Open Input Count of 1, which
corresponds to the MDB.
Chapter 31. Integrating and automating the process 805
Figure 31-47 Queue properties
8. Start rfhutil on the Message Broker system. Read the
RM_Maintenance.Create file, which is available in Additional Materials in the
RedTenantTestMessages folder.
806 WebSphere Business Integration Adapters
Figure 31-48 Connector event message
9. Select the usr tab in rfhutil. This tab lists user properties of the JMS
message. Compare this value with the message selector value in the EJB
deployment descriptor (see Figure 31-41 on page 799). The MDB only
processes messages for which the WSDL binding matches.
Chapter 31. Integrating and automating the process 807
Figure 31-49 WSDL binding in the usr folder
10.Back on the Main tab in rfhutil, click Write Q.
11.Return to the console of the Test server. If all went well, you should see the
output of the print statement in the EJB, as shown in Example 31-3.
Example 31-3 Output that is generated by the EJB
SystemOut O <<<< Message arrived for Update >>>>
808 WebSphere Business Integration Adapters
31.2.5 Generating proxy for process
Now that you have tested the EJB and MDB, you generate a proxy for the
process. The EJB can then instantiate this proxy and call its operation to create
and start a process instance. To generate a proxy:
1. In the package maintenance.process, right-click the WSDL file
MaintenanceProcess_ProcessPortType_JMS.wsdl and select Enterprise
Services Generate Service Proxy.
Because it is a long-running business process, you can only use the WSIF
framework.
2. Click Next.
Figure 31-50 Generate service proxy - step 1
3. Review the selections and click Next.

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.