|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message PutDate/PutTime update |
« View previous topic :: View next topic » |
Author |
Message
|
dexgk007 |
Posted: Tue Jun 23, 2009 12:46 am Post subject: Message PutDate/PutTime update |
|
|
Newbie
Joined: 14 Apr 2009 Posts: 4
|
Hi,
I'm currently writing python scripts in order to transfer messages between queues.
I want to keep the original Timestamp of the messages but when the messages are put on the target queue, the date is put on "NOW" (the current date/hour).
getq = pymqi.Queue(qm1, 'QL.TEST', MQOO_INPUT_SHARED)
putq = pymqi.Queue(qm1, 'QL.TEST2', MQOO_OUTPUT)
gmo.Options = MQGMO_NO_SYNCPOINT
md = pymqi.md()
msg = getq.get(None, md, gmo)
md.set(PutDate = '20080924')
putq.put(msg, md)
How is it possible to keep the original timestamp of the message in the target queue ? |
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Jun 23, 2009 1:35 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
check the pass, copy and set context options in the APR / APG manuals. using these option require additional security settings (depends on how your settings are). _________________ Regards, Butcher |
|
Back to top |
|
 |
dexgk007 |
Posted: Wed Jun 24, 2009 5:01 am Post subject: |
|
|
Newbie
Joined: 14 Apr 2009 Posts: 4
|
Thanks a lot! It is now solved and I am able to change also other MQMD fields. |
|
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
|
|
|
|