on 02-19-2009 10:13 PM
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?
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") ;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.