|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
|
|
getStringProperty not working |
« View previous topic :: View next topic » |
Author |
Message
|
rita |
Posted: Fri Feb 15, 2002 11:35 am Post subject: |
|
|
Novice
Joined: 31 Dec 2001 Posts: 17
|
I am setting String property of the message in a class, say ClassX.
setStringMessage("MessageFormat","ZZZZ"). and put it on the Queue
In classY,
When I get the message out from the queue and try to read this property of the message ,
getStringProperty("MessageFormat"),
I am getting a NULL value.
|
|
Back to top |
|
|
abmanesh |
Posted: Fri Feb 15, 2002 12:41 pm Post subject: |
|
|
Apprentice
Joined: 06 Nov 2001 Posts: 39
|
Check to see if the property exists on the receiving side by using
propertyExists (java.lang.String name) method on the receiving side. 'Am assuming you are using JMS(Also that you are using the method setStringProperty(String name, String value) method to set the property). Also you could get an enumeration of the properties using getPropertyNames() method and see if the property name you set on the receiving end is there.
[ This Message was edited by: abmanesh on 2002-02-15 12:46 ] |
|
Back to top |
|
|
lecmns |
Posted: Mon Feb 18, 2002 5:17 am Post subject: |
|
|
Apprentice
Joined: 26 Dec 2001 Posts: 36
|
hey..
try displaying the message created after setting after the properties..
it'll appear something like the one bwlow.. from that, you can check out if the value is really set in the client side.. same way, a display of the received message in the server side can probably give you a better idea about the message properties at server side.
JMS Message class: jms_text
JMSType: null
JMSDeliveryMode: 2
JMSExpiration: 0
JMSPriority: 4
JMSMessageID: null
JMSTimestamp: 0
JMSCorrelationID:null
JMSDestination: null
JMSReplyTo: null
JMSRedelivered: false
sender:Tarang
type:request
typeOfRequest:asynch
TJMSID:50bf3f5e:ec1968df63:-8000
testing the flow 01
You should have something like 'MessageFormat:ZZZZZ' along with the above properties. Normally this API is straight forward, so error have to be something very silly..
MnS
|
|
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
|
|
|
|