cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass JMS header Information to proxy field

Former Member
0 Kudos

Hi,

I am working with JMS to Proxy scenario (Synchronous).

I am getting one header field at sender JMS channel which need to be mapped with one of the Proxy field.

and similarly when proxy returning one field value that need to be mapped with receiver channel header information.

could any one help me on how to achieve this.

regards,

Navneet

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

use dynamic configuration to access the jms header field, pass the accessed value to a target field

do ref - /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name which will give you hints on how to use the dynamic configuration

Former Member
0 Kudos

Hi,

Thanks for the reply.

I gone through the link and understand that Dynamic Configuration will be one of the solution.

But In my case the required header field is coming at Additional JMS Message Properties .

Now My Question is how can I get Dynamic Configuration Key

If my required field is defined at "DCJMSMessageProperty9".

Regards,

Navneet

Shabarish_Nair
Active Contributor
0 Kudos

>

> Hi,

> Thanks for the reply.

>

> I gone through the link and understand that Dynamic Configuration will be one of the solution.

> But In my case the required header field is coming at Additional JMS Message Properties .

>

> Now My Question is how can I get Dynamic Configuration Key

>

> If my required field is defined at "DCJMSMessageProperty9".

>

> Regards,

> Navneet

so when you access the key, give the header field name as DCJMSMessageProperty9 and namespace http://sap.com/xi/XI/System/JMS

Make sure you enable ASMA in the sender CC and also add DCJMSMessageProperty9 to the property table

former_member187339
Active Contributor
0 Kudos

Hi,

>>Now My Question is how can I get Dynamic Configuration Key

Like this

1. switch on ASMA in sender JMS communication channel

2 Assign this udf to target field

UDF code

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

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

String valueOld = conf.get(key);

return valueOld;

3. Do a end to end testing (message mapping test will;l throw error)

Regards

Suraj

Answers (0)