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

How do I program message flows?

New users: Use the links in this topic to get information about the concepts and tasks associated with programming message flows.

How do I use message mappings?

Message mappings use a drag-and-drop interface to create and transform messages. You can use conditional logic, ESQL functions, and XPath functions to create complex mappings and transformations. You can also use message mapping to select and manipulate data in database tables. You must create a message definition for any messages that you include in a message mapping. Message map files are stored in Message Broker projects.
  • How do I create a message map file?

    Follow this link for instructions on how to create a message map in the Broker Application Development perspective. You can also create a message map from the Mapping node .
  • What does the Graphical Data Mapping editor look like?

    You create and modify message mappings in the Graphical Data Mapping editor. Use this link to discover information about the Graphical Data Mapping editor.
  • How do I configure a message map?

    When you configure message mappings, you can drag content from a source to a target. The source can be a message, a database, or both, and the target can be messages, database tables, or both. If your target is a database, you can select the database operation (insert, update, or delete) that you want to perform on the table. You can set the value for your target to be a constant, or you can use a function or expression to produce the value. Additionally, you can configure conditional mappings to set different values for targets based on the content of the sources, and to handle repeating elements in sources and targets. Follow this link to discover more about message mappings.
  • Message mapping syntax

    When you use an expression to set the value of a target in a message map, the expression must be in XPath format.

How do I use ESQL?

Extended Structured Query Language (ESQL) is a programming language based on Structured Query Language (SQL), which is commonly used with relational databases such as DB2®. ESQL extends the constructs of the SQL language to provide support for you to work with both message and database content. ESQL can be used with the Compute, Database, and Filter nodes.

Many of the WebSphere® Message Broker Samples show how to use ESQL in message flows.

You can view information about samples only when you use the information center that is integrated with the WebSphere Message Broker Toolkit or the online information center. You can run samples only when you use the information center that is integrated with the WebSphere Message Broker Toolkit.

The following samples contain example ESQL code: Use the following links to discover how to use ESQL in your message flows:

How do I use Java?

You can create a Java™ class file for a JavaCompute node and code Java functions to tailor the behavior of the node. You can add any valid Java code to your JavaCompute nodes and use the Java user-defined node API to process messages. You manage Java files through the Java perspective.

The following sample provides a collection of message flows that show how to use the JavaCompute node:
  • JavaCompute Node

    You can view information about samples only when you use the information center that is integrated with the WebSphere Message Broker Toolkit or the online information center. You can run samples only when you use the information center that is integrated with the WebSphere Message Broker Toolkit.

How do I use XML transformations?

You can use the XSLTransform node to transform an XML message into another form of XML according to the rules provided by an XSL (Extensible Stylesheet Language) style sheet. You can specify the location of the style sheet to apply to this transformation in three ways:
  • By using the content of the XML data within the message itself, which transforms the message according to a style sheet that the message itself defines.
  • By setting a value within the LocalEnvironment folder.
  • By using node properties, which ensures that the transformation that is defined by this single style sheet is applied to every message that is processed by this node.
You can discover links to information about using XML transformation in this section.
  • Where can I find a sample that shows XML transformations?

    If you have installed the WebSphere Message Broker Toolkit, you can use this link to display the XSL Transform sample. The XSL Transform sample is a message flow sample that shows how to use a message flow to transform an XML message to another form of XML message according to the rules provided by an XSL stylesheet.

    You can view information about samples only when you use the information center that is integrated with the WebSphere Message Broker Toolkit or the online information center. You can run samples only when you use the information center that is integrated with the WebSphere Message Broker Toolkit.

  • How do I use the XSLTransform node?

    Follow this link to discover how to use and configure the XSLTransform node to transform an XML message into another form of XML.
  • Where can I find out more about XSL Transformations?

    To discover more about XML Transformations, follow this link to the W3C specification of the syntax and semantics of the XSL Transformations language for transforming XML documents into other XML documents.

How do I use PHP?

PHP is a scripting language that you can code to route and transform messages. You can use PHP in the PHPCompute node, which is supported only on Windows.
  • Where can I get an overview of PHP?

    Follow this link for an overview of PHP, and links to further information about how you can use this scripting language.
  • Where can I find a sample that shows how to use PHP?

    If you have installed the WebSphere Message Broker Toolkit, you can use this link to display the PHP sample. The PHP sample is a message flow sample that shows how to use PHP code to transform an XML message.

    You can view information about samples only when you use the information center that is integrated with the WebSphere Message Broker Toolkit or the online information center. You can run samples only when you use the information center that is integrated with the WebSphere Message Broker Toolkit.

  • How do I use a PHPCompute node?

    Follow this link to discover how to use and configure the PHPCompute node in your message flows.
  • How do I create PHP code for a PHPCompute node?

    Discover how to create a PHP script file for the PHPCompute node in your message flows.

How do I use .NET?

On Windows platforms, use .NET assemblies to create, modify, and route messages. You can call .NET assemblies from a .NETCompute node. Using ESQL, you can also call assemblies from a Compute node.

How do I use XPath?

The XML Path Language (XPath) is a language used to uniquely identify or address parts of an XML document. An XPath expression can be used to search through an XML document, and extract information from the nodes (any part of the document, such as an element or attribute) in it. XPath expressions can be used in message maps, and in the properties of some of the nodes. Typically, you might use XPath when you are using Java, XML, or PHP.
Notices | Trademarks | Downloads | Library | Support | Feedback

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

        
        Last updated:
        
        Last updated: 2016-05-23 14:45:56


General topicGeneral topic | Version 8.0.0.7 | aa40220_