|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
mqmessage.setStringProperty adds dt="string" |
« View previous topic :: View next topic » |
Author |
Message
|
msarvankmr |
Posted: Tue Apr 18, 2017 5:55 am Post subject: mqmessage.setStringProperty adds dt="string" |
|
|
Newbie
Joined: 18 Apr 2017 Posts: 2
|
I am new to MQ. I am trying to create and send a RFH2 message. However, after created, the attributes in RFH2 usr folder showing the data type, [dt="string"] which I do not want.
For example, instead of
<DataLength>1034</DataLength>
I got this:
<DataLength dt="string" >1034</DataLength>
Is there anyway to get rid of [dt="string"] in the message that I want to send out?
Or is there any way to that I can set to get rid of [dt="string"] in the message?
I have referred a forum which says this problem will be resolved by writing the RFH properties instead of setting the message properties. As I am new to contact admin me how to set RFH properties from c#? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Apr 18, 2017 6:21 am Post subject: Re: mqmessage.setStringProperty adds dt="string" |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
msarvankmr wrote: |
I am new to MQ. I am trying to create and send a RFH2 message. |
Don't.
msarvankmr wrote: |
However, after created, the attributes in RFH2 usr folder showing the data type, [dt="string"] which I do not want. |
Why not? What problem would that cause? Doesn't change the value.
msarvankmr wrote: |
I have referred a forum which says this problem will be resolved by writing the RFH properties instead of setting the message properties. |
What problem did you have setting message properties (which are the preferred way of conveying this data in newer versions of MQ)? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Apr 18, 2017 6:21 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Other than posting here, what research have you done? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Tue Apr 18, 2017 12:11 pm Post subject: Re: mqmessage.setStringProperty adds dt="string" |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
msarvankmr wrote: |
I am new to MQ. I am trying to create and send a RFH2 message. However, after created, the attributes in RFH2 usr folder showing the data type, [dt="string"] which I do not want. |
That is meta-data and leave it alone. "dt" == Data Type. It tells the receiving framework that "1034" should be treated as a "string" because you did:
Code: |
sendMsg.setStringProperty("DataLength", "1034"); |
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
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
|
|
|
|