When you have imported the Error Handler sample, you must configure
the sample to use transactionality before you can deploy the sample to
the integration node.
Complete the following tasks to set up the Error Handler sample to use transactionality:
Stop the integration node.
On Windows: Start a command console in which you can run IBM Integration Bus commands.
On Linux: Run the mqsiprofile command in a terminal window.
Enter the following
command on the command line to stop your integration node, where IB9NODE is the name of your integration node:
Define the STAFFDB database as an XA resource manager to the queue manager for the integration node.
The queue manager acts as the transaction manager. The integration node is IB9NODE,
the queue manager is IB9QMGR,
and the data source name is STAFFDB.
On Windows: Start the command console in which you can run IBM Integration Bus commands.
On Linux: Run the mqsiprofile command in a terminal window.
Enter the following command on the
command line to start your integration node, where IB9NODE is the
name of your integration node:
mqsistart IB9NODE
Deploy the sample to the integration node.
In the IBM Integration Toolkit, switch to the Integration Development perspective.
Create a new broker archive (BAR) file and add
Main_Flow.msgflow to the BAR file:
In the Application Development view, click
File > New > BAR File. The New BAR file wizard opens.
In the New BAR file wizard, select the
Error Handler Message Flows project and enter a name for the BAR file, click
Finish. The new BAR file is created and opens
in the Broker Archive editor.
In the Broker Archive editor, select the
Message Flows project check box.
The Main_Flow.msgflow check box is automatically selected.
Click Build broker archive, click
OK. The Main_Flow.msgflow file is added to
the BAR file.
Configure the message flow to run as a coordinated transaction:
To switch to the Manage page, click the
Manage tab at the bottom
of the Broker Archive editor window.
Right-click Main_Flow.cmf.
The configurable properties of Main_Flow.cmf
are displayed in the Properties view.
Select the Coordinated Transaction check box.
Press Ctrl+S to save the BAR file.
Ensure that the IBM Integration Toolkit is connected to the integration node IB9NODE.
Create a new integration server called ErrorHandler:
In the Application view, right-click the integration node IB9NODE,
click New > Integration Server.
In the New Integration Server window enter ErrorHandler.
Click OK to add the integration server to the integration node.
Deploy the BAR file:
In the Application Development view, right-click the BAR file that you created,
click Deploy File.
In the "Deploy a BAR File" window,
click the ErrorHandler integration server,
Click OK,
the Main_Flow.msgflow file is deployed to the integration node.