on 10-01-2009 3:43 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
>
> 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
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
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.