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 » WebSphere Message Broker (ACE) Support » How to set the date and time for a particular message

Post new topic  Reply to topic
 How to set the date and time for a particular message « View previous topic :: View next topic » 
Author Message
VijayGoparaju`
PostPosted: Thu Nov 20, 2008 10:18 pm    Post subject: How to set the date and time for a particular message Reply with quote

Acolyte

Joined: 26 Aug 2008
Posts: 72

Hi All,

I have a requirement.I want to put the latest Date and Time for a particular message and I have used the following thing:

queuePutMessageOptions.Options = MQC.MQCACF_PUT_DATE;
queuePutMessageOptions.Options = MQC.MQCACF_PUT_TIME;

Where to put this code correctly?

Please reply..
Vijay...
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Nov 20, 2008 10:32 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

The actual Date/Time the message was sent is in the MQMD folder of your message.

Put a trace node configured to outut {$Root} just after the MQInput Node. Take a user trace and you will see what I mean. Lots of nice goodies will be revealed.

But our text says 'put' and your code (which overrites itself) gets a date and time. Slightly confusing.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Sam Uppu
PostPosted: Fri Nov 21, 2008 6:51 am    Post subject: Re: How to set the date and time for a particular message Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

VijayGoparaju` wrote:
Hi All,

I have a requirement.I want to put the latest Date and Time for a particular message and I have used the following thing:

queuePutMessageOptions.Options = MQC.MQCACF_PUT_DATE;
queuePutMessageOptions.Options = MQC.MQCACF_PUT_TIME;

Where to put this code correctly?

Please reply..
Vijay...

Vijay,
As the msg will contain the date and timestamp in its header, why do you need to attach the date and timestamp again?.
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 » WebSphere Message Broker (ACE) Support » How to set the date and time for a particular message
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.