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:

  1. In the workbench go to Window > Preferences > Run/Debug > TCP/IP Monitor.
  2. Ensure that Show the TCP/IP Monitor view when there is activity is selected.
  3. Click Add. Set the Local monitoring port to an unused port on your system, for example, 5555.
  4. Set the Type to TCP/IP.
  5. Set the Host name to localhost.
  6. 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
  7. Click OK.
  8. Select the TCP/IP Monitor you have just created, click Start.
  9. 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.

    TCP/IP Monitor preferences

  10. If TCP/IP monitor is not visible, complete the following steps:
    1. In the workbench go to Window > Show View > Other... .
    2. In the Show View window, expand Debug and select TCP/IP Monitor.
    3. Click OK.
  11. 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