Setting up a TCP/IP Monitor
The sample provides both a Web service consumer and a Web service
provider. You can call the consumer by using WebSphere MQ, but you see only the message
that goes in and out of the consumer. To see the create sequence, terminate sequence, message number, and the signed and encrypted
messages that are passed between the provider and consumer you must set
up a TCP/IP Monitor.
To create a TCP/IP Monitor, complete the following steps:
- In the workbench go to
Window > Preferences > Run/Debug > TCP/IP Monitor.
- Ensure that Show the TCP/IP Monitor view when there is
activity is selected.
- Click Add.
Set the Local monitoring port to an unused port on your system, for
example, 5555.
- Set the Type to TCP/IP.
- Set the Host name to localhost.
- Set Port to the port on which the AddressBookProvider
execution group is running. To check the AddressBookProvider execution
group port, issue the following command:
mqsireportproperties MB8BROKER -e AddressSampleProvider -o HTTPConnector -n port
- Click OK.
- Select the TCP/IP Monitor you have just created, click Start.
- You have setup a TCP/IP Monitor to receive messages sent to an unused port on your system,
for example 5555, and forward them to the provider flow.

- If TCP/IP monitor is not visible, complete the following steps:
- In the workbench go to
Window > Show View > Other... .
- In the Show View window, expand
Debug and select TCP/IP Monitor.
- Click OK.
- You must now configure the Web services consumer to send messages to the
TCP/IP Monitor, rather than to the
provider flow directly, by setting the port to the one you configured in this section;
see Setting up the Address Book sample to use HTTP.
Back to Extending the sample to create and apply policies
Back to Extending the Address Book sample
Back to sample home