Setting up your environment
This section describes how to prepare your environment
to work with the examples. In what follows, sample_folder refers
to the folder in which the examples reside, andWBI_folder refers
to the folder containing your current IBM WebSphere Business Integration
installation.
- Create the queues This tutorial requires
that six local queues be defined in WebSphere MQ Workflow queue
manager. You create these either via the WebSphere MQ Explorer application
or by typing RUNMQSC FMCQM at the command line and issuing the following commands:
- DEFINE QL('MQWFCONN.ERROR')
- DEFINE QL('MQWFCONN.ARCHIVE')
- DEFINE QL('MQWFCONN.IN_PROGRESS')
- DEFINE QL('MQWFCONN.REPLYTO')
- DEFINE QL('MQWFCONN.UNSUBSCRIBED')
- DEFINE QL('CWLDINPUTQ')
- Create business object definitions--optional Business
object definition files for the WebSphere MQ Workflow data structures
already exist, but performing this step demonstrates the FDLBORGEN
utility, which converts data structures to business objects. To
use this utility:
- From a command line, change to directory WBI_folder/connectors/WebSphereMQWorkflow/utilities
- Enter the following:
FdlBorgen -isample_folder/WebSphereMQWorkflow_Samples.fdl -
osample_folder/SampleItem.in -nSampleItem -pMQWF_Structure_ -r3.1.0
FdlBorgen -isample_folder/WebSphereMQWorkflow_Samples.fdl -
osample_folder/SampleItemOrder.in -nSampleItemOrder -pMQWF_Structure_
-r3.1.0
- Load the example business objects into the repository:
- Start IBM WebSphere ICS.
- Create an Integration Component Library inside the WebSphere
Business Integration System Manager.
- Import the Sample_MQWF_Order_Objects.jar from the Samples folder into the Component Library.
Note:
This file is located in the WBI_folder/connectors/WebSphereMQWorkflow/Samples
folder.
- Confirm that the example business objects have been loaded.
- Load the example collaboration template and collaboration objects into the repository:
Similarly, using your WebSphere Business Integration System Manager,
import the repository file named, sample_MQWF_Order_Collaborations.jar, located in the WBI_folder/connectors/WebSphereMQWorkflow/Samples
folder, into your Integration Component Library.
- Compile the collaboration template Using
your WebSphere Business Integration System Manager, right-click
the folder labeled Collaboration Templates and select Compile all
from the drop down list.
- Restart IBM WebSphere ICS Reboot InterChange
Server to ensure that all changes take effect. Use System Monitor
to ensure that all of the collaboration objects and connector controllers
are in a green state.
