WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

Associating PHP code with a PHPCompute node

Use these instructions to associate your PHP code with a PHPCompute node.

  1. Create a message flow containing a PHPCompute node. For example, create a message flow containing an MQInput node, a PHPCompute node, and an MQOutput node. For information, see Creating a message flow.
  2. Connect the Out terminal of the MQInput node to the In terminal of the PHPCompute node.
  3. Connect the Out terminal of the PHPCompute node to the In terminal of the MQOutput node.
    Message flow containing an MQInput node, a PHPCompute node, and an MQOutput node
  4. On the MQInput node, set the Queue name property (on the Basic tab) to InQueue.
  5. On the PHPCompute node, set the PHP script property (on the Basic tab) to Hello.php. You can either type the name of the PHP file into the field, or select Browse to navigate to the PHP files stored in your workspace. If you select Browse, the PHP files in the current Message Broker project are displayed, together with PHP files in any referenced projects. To add project references, right-click the Message Broker project, select Properties, then select the Project references category.
  6. Set the following properties of the MQOutput node:
    1. On the Basic tab, set the Queue name property to OutputQueue
    2. On the Validation tab, set the Validate property to Inherit.
  7. Save the message flow.
You can display the PHP script file associated with the PHPCompute node by double-clicking the node in the message flow. The file Hello.php is opened in the Eclipse text editor.
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:46:34


Task topicTask topic | Version 8.0.0.7 | ac69013_