|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How can i use non-JMS fields in RFH2 header? |
« View previous topic :: View next topic » |
Author |
Message
|
Andrey |
Posted: Fri Nov 09, 2001 2:28 am Post subject: |
|
|
Apprentice
Joined: 02 Sep 2001 Posts: 37 Location: Belarus, Minsk
|
Hi everyone
Can anybody explain me, it is possible to set any non-JMS fields in the message? I mean the following: If i use method Message.setStringProperty(name, value) JMS processor adds field with "name" name and "value" value into RFH2 header and inclose this field in "usr" tag. Is it possible to customize tag value? Say, I would like to insert in RFH2 header tag <pcs> instead of <usr>. How can i do it if it is possible?
Thanks |
|
Back to top |
|
 |
kolban |
Posted: Fri Nov 09, 2001 6:25 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
Using the setProperty() I believe all properties will be added to the folder of the MQRFH2. Remember, the MQRFH2 is an implementation side effect of JMS. If you are wanting to set different folders and values then I am presuming that the destination of the message is a non-JMS system. If this is the case, you can set the TARGCLIENT value to MQ and JMS will NOT generate ANY MQRFH2 folder itself. You can then add your own MQRFH2 header in your own application with any values you would like. |
|
Back to top |
|
 |
Andrey |
Posted: Mon Nov 12, 2001 1:08 am Post subject: |
|
|
Apprentice
Joined: 02 Sep 2001 Posts: 37 Location: Belarus, Minsk
|
Thanks, Neil
Just please clarify one thing. How and where can I set the TARGCLIENT value? |
|
Back to top |
|
 |
kolban |
Posted: Mon Nov 12, 2001 5:49 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
|
Back to top |
|
 |
Andrey |
Posted: Tue Nov 13, 2001 1:41 am Post subject: |
|
|
Apprentice
Joined: 02 Sep 2001 Posts: 37 Location: Belarus, Minsk
|
Neil, I'm sorry for my stupid question again, but I could not find such method in API references. Can you point where exactly I can find this API?
Thanks |
|
Back to top |
|
 |
kolban |
Posted: Tue Nov 13, 2001 6:56 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
See the following Destination
The method is part of the Destination class which is inherited by Queue and Topic |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|