Viewing and managing a broker domain using the Configuration Manager Proxy API Exerciser

The Configuration Manager Proxy API Exerciser sample can be used to view and manipulate a broker domain using the CMP. To view and manage a broker domain using the CMP, perform the following steps:
  1. Start the Configuration Manager Proxy API Exerciser.
    • On Windows, click Start > IBM WebSphere Message Brokers 6.0 > Java Programming APIs > Configuration Manager Proxy API Exerciser.
    • On other platforms, run the following shell script from the installation directory:

      INST_DIR\sample\ConfigManagerProxy\StartConfigManagerProxyExerciser

      Where INST_DIR is the installation directory.

    The Configuration Manager Proxy API Exerciser window is displayed.
  2. Connect to a running Configuration Manager by clicking File > Connect to Configuration Manager…

    The Connect to a Configuration Manager... dialog is displayed.

  3. Enter the connection parameters to the Configuration Manager, then click Submit.

    broker domain information is retrieved and displayed in the Configuration Manager Proxy API Exerciser window. You have now connected to the Configuration Manager using the Configuration Manager Proxy API Exerciser.

    The top left of the screen contains a hierarchical representation of the broker domain to which you are connected. Selecting objects in the tree causes the table on its right to change, reflecting the attributes of the selected object. The Method column names CMP methods that can be invoked in your own Java applications, and the Result column indicates the data that would be returned by calling the CMP method on the selected object.

  4. Execute a CMP method against a broker object. CMP methods are used to manage objects in a broker domain.
    1. In the navigation tree view, right-click a broker.

      A context-sensitive menu is displayed that shows all the available CMP methods.

    2. Select List connections.
      Information is displayed in the log view of the Configuration Manager Proxy API Exerciser window. For example, the following output could be displayed
      (12/08/04 18:24:45) ----> cmp.exerciser.ClassTesterForBrokerProxy.
                                  testListConnections(<B1>)
      (12/08/04 18:24:45) There are no connections defined.
      (12/08/04 18:24:45) <---- cmp.exerciser.ClassTesterForBrokerProxy.
                                  testListConnections
      The first line indicates that the method cmp.exerciser.ClassTesterForBrokerProxy.testListConnections() was invoked with the parameter of the AdministeredObject representing the broker, B1. The second line is some output from the method, and the third line indicates that the method completed.

      The available CMP methods are used to manage the broker domain.

During these steps you connected to a broker domain, viewed the domain information, and performed a management task using the Configuration Manager Proxy API Exerciser.
Related concepts
The Configuration Manager Proxy samples
Related tasks
Running the Configuration Manager Proxy API Exerciser sample
Customizing the Configuration Manager Proxy API Exerciser
Recording and playing back configuration scripts using the Configuration Manager Proxy API Exerciser
Modifying the Configuration Manager Proxy samples