Table of Contents

Search

  1. Preface
  2. Understanding PowerExchange for JMS
  3. Configuring PowerExchange for JMS
  4. Working with JMS Sources and Targets
  5. Creating and Configuring JMS Workflows
  6. Appendix A: JMS Datatype Reference
  7. Appendix B: Glossary of Terms

PowerExchange for JMS User Guide for PowerCenter

PowerExchange for JMS User Guide for PowerCenter

Streaming JMS Messages to an XML Parser Transformation

Streaming JMS Messages to an XML Parser Transformation

If you configure an XML Parser transformation to parse XML from a JMS TextMessage, you can configure the PowerCenter Integration Service to stream the XML between the JMS Source Qualifier and the XML Parser transformation. When the PowerCenter Integration Service streams XML data, it splits XML data from the JMS Source Qualifier into multiple segments. You can configure a smaller input port in the XML Parser transformation and reduce the amount of memory that the session requires to process large XML documents. The XML Parser transformation can parse messages that are larger than 100 MB.
When you enable XML streaming, the XML Parser transformation receives data in segments that are less than or equal to the port size. When the XML document is larger than the port size, the PowerCenter Integration Service passes more than one row to the XML Parser transformation. Each XML row has a row type of streaming. The last row has a row type of insert.
The XML Parser transformation input port precision must be equal to or greater than the JMS Source Qualifier output port precision. When some of the messages are large, but most of the messages are small, set the XML Parser transformation input port size equal to the size of the smaller messages for best performance.
If you enable XML streaming for the JMS source, you must also enable it in the XML Parser transformation.
You can stream a JMS messages if the message structure is TextMessage. You cannot stream the message if the structure is MapMessage or BytesMessage.
To enable XML streaming:
  1. Edit the JMS session in the Workflow Manager.
  2. Click the Mapping tab.
  3. Click the JMS Source Qualifier in the Navigation panel.
  4. Enable XML Streaming in the Source Qualifier session properties.
  5. Click the XML Parser transformation in the left panel.
  6. Enable XML Input Streaming in the XML Parser transformation session properties.

0 COMMENTS

We’d like to hear from you!