cancel
Showing results for 
Search instead for 
Did you mean: 

Sends JMSType for MQ Series

Former Member
0 Kudos

Hi experts.

I am doing an interface FILE to JMS and I need send the JMSType, because it uses the AS400 Legacy.

I configured the Communication Channel and I use ADAPTER - SPECIFIC MESSAGE ATRIBUTES, SPECIFY ADDITIONAL JMS MESSAGE PROPERTIES with Name DCJMSType and Java Type java.lang.String.

In Design I created the following UDF:

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key =

DynamicConfigurationKey.create("http:/'/sap.com/xi/XI/System/JMS", "DCJMSType") ;

conf.put(key, "teste");

return "";

In SXI_MONITOR, DynamicConfiguration has the xml following:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Request Message Mapping

-->

- <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

<SAP:Record namespace="http:/'/sap.com/xi/XI/System/JMS" name="DCJMSType">teste</SAP:Record>

</SAP:DynamicConfiguration>

But in RWB I have the error message:

Dynamic record(s) 'DCJMSMessageProperty0,' that correspond to JMS property/properties 'DCJMSType,' either missing from message 'ddfed228-c747-5ff1-99d9-001a64c3ecb6', or the channel configuration contains invalid types

Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Dynamic header records are missing/incorrect specified in message: ddfed228-c747-5ff1-99d9-001a64c3ecb6. Erroneous/Unspecified headers are:[ DCJMSMessageProperty0 ]

Anybody help me?

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

You have to use the dynamic container values

DCJMSMessageProperty0, ... , DCJMSMessageProperty9 in the same order as you have the values in the JMS channel. Do not use the values in the channel directly.

Use:

DynamicConfigurationKey key =

DynamicConfigurationKey.create("http://sap.com/xi/XI/System/JMS", "DCJMSMessageProperty0") ;