cancel
Showing results for 
Search instead for 
Did you mean: 

JMS Correlation ID

Former Member
0 Kudos

Hi All,

I sent the message out with JMS adapter with PI7.1 (asynchronous without BPM)

i am trying to set up the correlation id in the UDF with the following code:

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

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

conf.put(key, newValue); // set the value from the source field

return conf.get(key);

with the adapter setting:

Advanced tab:

JMS Message Correlation ID is enable

Specify Additional JMS Message Preperties (Maximum of 10) is enable

Name -


JavaType

DCJMSCorrelationID----


String

but the error said:

Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException:Dynamic header records are missing/incorrect specified in message: 4b310ac1-887f-003e-0200- 0000a7601ec. Erroneous/Unspecified headers are DCJMSMessageProperty0 ]

I have some doubt on the setting:

1. could UDF make it to set up the JMSCorrelationID?

2. If UDF could, what do i need to set in the receiver Communication Channel?

thank you very much.

Any advice is appreciated

i already checked the link:

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos
with the adapter setting:
Advanced tab:
JMS Message Correlation ID is enable
Specify Additional JMS Message Preperties (Maximum of 10) is enable
Name --------------------------------JavaType
DCJMSCorrelationID-------------String

Do not set the ASMA for all the variables....just check it for JMSCorrrelationID.....uncheck for all others......even your error is saying the same.... Erroneous/Unspecified headers are DCJMSMessageProperty0 ]

Regards,

Abhishek.

Former Member
0 Kudos

Hi Abhishek

thanks again

I tried that too

when i only enable the following items in Advance tab:

User Adapter-Specific Message Attributes

JMS Message Correlation ID

Specify Additional JMS Message Properties(Max of 10)

in this case, yes the communication channel is fine

but the CorrelationID cannot be set in the target system

Answers (1)

Answers (1)

former_member200962
Active Contributor
0 Kudos
return conf.get(key);

Why do you need a return statement like the above.....wont return ""; help?

Regards,

Abhishek.

Former Member
0 Kudos

Hi Abhishek,

i need to assign the source field's value to the target field in the UDF

at the same time need to set up the JMS Correlation ID

return is for assign the value the the target filed