cancel
Showing results for 
Search instead for 
Did you mean: 

Adapter JMS receiver MQS put MQMD messageID

Former Member
0 Kudos

Hi everybody,

I have a scenario RFC => PI => JMS (IBM MQS).

I would like to put the messageid depending of a value of program and not provided automatically from MQS.

It's a requirement .

The Msgid should have a structure like 'TENTBEL01' + bits of timestamp instead of default value (AMQ TBEA1 7î×K)

where TBEA1 is my queue manager.

I tried to use the additionnal parameter properties to do this.

in property 0, I put JMSMessageID type String.

in an UDF, I put .

DynamicConfiguration conf = (DynamicConfiguration) container

.getTransformationParameters()

.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

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

conf.put(key2, "TENTBEL01 TEST");

For another JMS propoerty , that works (JMSReplyTo).

I don't understand why doesn't work for JMSMessageID.

Can somebody help me, please ?

Kind Regards.

E. Koralewski

Accepted Solutions (0)

Answers (2)

Answers (2)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Eric,

Fist you want to change JMS Msg ID using standard adapter you can do it,but if you want to change MQMD.MSG ID in MQ using stadard JMS functionality not possible.

which one you want to change ??

Regards,

Raj

Former Member
0 Kudos

Hi RAja,

I want to change the MQMD.MsgID.

Is it possible to do that if I connect to Websphere MQ with a personnal module and replacing the 2 standard module proposed on the adapter ?

Kind Regards

Former Member
0 Kudos

I found that was a property of IBM MQS thru JMS.

It is not possible to put manually the MSGID when you pass thru JMS.

At my side, I let the system do it and that worked with our partner.

Best Regards

E. Koralewski

marksmyth
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Eric

Check note #1086303 XI JMS Adapter and IBM Websphere MQ: FAQ - Question 3. This may provide you with some useful information.

Regards

Mark