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 API Support » XMS.Net - Message Headers : How to retrieve Values?

Post new topic  Reply to topic
 XMS.Net - Message Headers : How to retrieve Values? « View previous topic :: View next topic » 
Author Message
major7
PostPosted: Tue Aug 19, 2008 4:06 am    Post subject: XMS.Net - Message Headers : How to retrieve Values? Reply with quote

Novice

Joined: 26 Jun 2008
Posts: 12

Hi Folks,

I'm trying to get some information out of a Message that looks like the following when printed to console ([...]=some information blurred):

Code:
 
Message class: XMS_MESSAGE_TYPE_BYTES
  Type:         
  DeliveryMode:  Persistent
  Expiration:    0
  Priority:      4
  MessageID:     ID:[...]
  Timestamp:     1216729753832
  CorrelationID:
  Destination:   queue:///[...]
  ReplyTo:       
  Redelivered:   False
  JMSXAppID: WebSphere MQ Client for Java
  JMSXDeliveryCount: 1
  JMSXUserID: mqUsr1     
  JMS_IBM_Format:         
  JMS_IBM_PutDate: 22.07.2008
  JMS_IBM_Character_Set: 1208
  JMS_IBM_MsgType: 8
  JMS_IBM_PutApplType: 28
  JMS_IBM_Encoding: 273
  JMS_IBM_PutTime: 12:29:13

3c3f786d6c2076657273696[...]


I seem to have no trouble accessing Some of the properties by using

Code:

string ts = this.message.GetStringProperty("JMS_IBM_PutDate");


What I need is the property "Timestamp", but I can't seem to access it that way (neither can I get it via message.GetIntProperty()). Does anyone have an idea what else i could try?


thanks in advance,

Seb
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Aug 19, 2008 5:25 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

First get a string[] of the property names. Then use each property and retrieve it as an object. Last but not least do object.getClass().getName() to determine the type of the property....

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » XMS.Net - Message Headers : How to retrieve Values?
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.