ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » getStringProperty not working

Post new topic  Reply to topic
 getStringProperty not working « View previous topic :: View next topic » 
Author Message
rita
PostPosted: Fri Feb 15, 2002 11:35 am    Post subject: Reply with quote

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
View user's profile Send private message
abmanesh
PostPosted: Fri Feb 15, 2002 12:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
lecmns
PostPosted: Mon Feb 18, 2002 5:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » getStringProperty not working
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.