Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Inserting custom header fields inside MQRFH2 (JMS Receiver adapter)

Hello,

I have a scenario where PI sends the data to IBM Webspehere MQ version 6.0 using JMS adapter. The requirement of the outbound JMS message is that, we have to add 3 property fields to MQRFH2 header section at <usr> and value of the

properties needs to be fetched from the Message body( business data like VendorID..basically routing information to the supplier)

I started with writing a graphical mapping in and used DynamicConfiguration classes to add message properties in the header. But the result of this mapping is, it adds the custom property fields inside SOAP header of the message but not on JMS header MQRFH2 section.

Any valuable inputs are welcome.

Thanks in advance!

Amulya

Former Member
replied

Hi Amulya,

Here is the solution,

1. In Adapter Specific Message Attributes under the "Advanced" tab, use the table to enter your property names into the table (up to 10)

2. Click on the "Module" tab of the communication channel.

3. In the processing sequence, add a new module called "AF_Modules/DynamicConfigurationBean" type "Local Enterprise Bean" module key "RFHHEADER"

4. You can now enter name value pairs in the module configuration table.. for instance, if you want to assign a value of "TEST" to a property called "Environment" (created in step 1, and first entry in table), then the config would be as follows:

Module Key Parameter Name Parameter Value

=========== ============= =========================

RFHHEADER key.0 insert http://sap.com/xi/XI/System/JMS DCJMSMessageProperty0

RFHHEADER value.0 TEST

repeat using key.1/value.1 etc..

Regards,

Raj

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question