Setting up the TCPIP Client Nodes sample
To set up the sample, complete the following steps:
- Import and deploy the sample to add the following directories to the workspace:
- TCPIPClientNodesSampleFlowProject.
This project contains four sample message flows and three .mbtest files.
This project also contains a broker archive (BAR) file containing a compiled message
flow,
and an example input message for extending the sample.
- TCPIPClientNodesSampleJavaProject.
This project contains the source code for the JavaCompute nodes that are used in the
sample message flows.
- The TCPIPClientNodesSampleFlowProject shows a warning after you have imported it:
The SaleEnvelope schema element was not found in the $OutputBody/SaleEnvelope/Response XPath.
This warning is generated because a specific element is referenced within the test
message body and it can be ignored.
Because the test message is a self-defining XML message, this XPath expression cannot be
resolved at design time.
- By default, this sample deploys and runs the asynchronous scenario,
which contains the following objects within TCPIPClientNodesSampleExecutionGroup:
- TCPIPAsyncOut message flow
- TCPIPAsyncIn message flow
- TCPIPServerSimulation message flow
- TCPIPClientNodesSampleJavaProject
- This sample assumes that port 7777 is available for use on the local computer.
If you want to use a different port, choose one of the following options:
- Change all the TCPIP nodes that are used in the four message flows so that they have
their port numbers
set to 7777:
- Change the port number on each node that you want to change by clicking on
each node.
In the Properties view on the Basic tab, modify the
Connection
details property to localhost:port
where port is the port number that you want to use.
- Save the message flow.
- Select and open TCPIPClientNodesSampleArchive.bar.
Select the Prepare tab, and click Build broker archive.
Save the BAR file.
- Drag the BAR file onto TCPIPClientNodesSampleExecutionGroup.
- Override the same Connection details properties in the
Configuration tab on the BAR file, rather than directly
in the message flows.
The Connection details property on the Basic tab
looks similar to the following screen capture:
You can now run the sample. See Running the TCPIP Client Nodes sample.
For an overview of how these nodes work and are configured;
see TCP/IP overview
in the WebSphere Message Broker documentation..
Back to sample home