WebSphere Message Service Client for C/C++, Version 2.0.2 Operating Systems: AIX, Linux, Solaris, Windows

Running the sample applications

You can run the C and C++ sample applications interactively in either simple or advanced mode, or noninteractively using auto-generated or custom response files.

Before you begin

Before you begin

Before running any of the supplied sample applications, you must first set up the messaging server environment so that the applications can connect to a server as described in Setting up the messaging server environment.

For C or C++ sample applications, you must have set up one of the following environment variables:

About this task

The operation of the C and C++ sample applications is identical for all platforms.
Tip: When you are running a sample application, type ? at any time for help on what to do next.

The following steps summarize what you need to do to run the C and C++ sample applications.

Steps for this task

Procedure

  1. Select the mode in which you want to run the sample application. Type either Advanced or Simple.
  2. Answer the questions. To select the default value, which is shown in the square brackets at the end of the question, press Enter. To select a different value, type the appropriate value, and press Enter.

    Here is an example question:

    Enter connection type [wpm]:

    In this case, the default value is wpm (connection to a WebSphere service integration bus).

Results

When you run the sample applications, response files are generated automatically in the current working directory. Response file names are in the format <connectiontype>-<sampletype>.rsp; (for example, wpm-producer.rsp). If required, you can use a generated response file to rerun the sample application with the same options, without re-entering these options manually.


Task topic

Terms of Use | Rate this page

Last updated: 24 May 2011

(C) Copyright IBM Corporation 2005, 2011. All Rights Reserved.