cancel
Showing results for 
Search instead for 
Did you mean: 

Setting a string property on JMS Receiver

Former Member
0 Kudos

We received a request from the vendor to assign a custom string property to each message we send to their JMS queue. Do I specify this in the comms channel? If so, how is it done? The string property is called "TRANSACTION_TYPE" and the value is "CONS-MASTER".

Thanks,

Mike

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Do you mean value CONS-MASTER shall always go in the message sent to Vendor.

Prepare your structure with a field Transaction_Type and pass CONS-MASTER in it in mapping.

I am not sure if i have understood you clearly.

Regards,

Satish

Former Member
0 Kudos

I asked the same question and apparently it is a property of the message being sent, not actually a field in the payload. If you were coding this it would look something like:

TextMessage msg = new TextMessage(session);

Msg.setStringProperty(“TRANSACTION_TYPE”, “CONS-MASTER”);

Msg.setText(xml);