471,078 Members | 801 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,078 software developers and data experts.

pymqi commit/rollback

1
Hi,

I have a simple piece of code as follows in which I am trying to test the commit/backout of messages put on the queue. It seems that inspite of doing a QueueManager.backout(), the message still seems to be on the queue. Please advice.
Expand|Select|Wrap|Line Numbers
  1. import pymqi
  2.  
  3. queueMgr = pymqi.QueueManager(None)
  4. mqCd = pymqi.cd()
  5. qManager = 'T1.THS.QM'
  6. qName = 'QL.SQ._MONDO__INPUT.01'
  7. qChannel = 'SYSTEM.TESTS.SVRCONN'
  8. qPort = 'ARCADE(1600)'
  9. queueMgr.connectTCPClient(qManager, mqCd, qChannel, qPort)
  10. mqQuery = pymqi.Queue(queueMgr, qName)
  11. queueMgr.put1(qName,"Test")
  12. queueMgr.backout()
  13. queueMgr.disconnect()
May 1 '07 #1
1 2390
bartonc
6,596 Expert 4TB
Hi,

I have a simple piece of code as follows in which I am trying to test the commit/backout of messages put on the queue. It seems that inspite of doing a QueueManager.backout(), the message still seems to be on the queue. Please advice.
Expand|Select|Wrap|Line Numbers
  1. import pymqi
  2.  
  3. queueMgr = pymqi.QueueManager(None)
  4. mqCd = pymqi.cd()
  5. qManager = 'T1.THS.QM'
  6. qName = 'QL.SQ._MONDO__INPUT.01'
  7. qChannel = 'SYSTEM.TESTS.SVRCONN'
  8. qPort = 'ARCADE(1600)'
  9. queueMgr.connectTCPClient(qManager, mqCd, qChannel, qPort)
  10. mqQuery = pymqi.Queue(queueMgr, qName)
  11. queueMgr.put1(qName,"Test")
  12. queueMgr.backout()
  13. queueMgr.disconnect()
This looks very cool. I wish that I had time to check it out.
May 2 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by DP | last post: by
1 post views Thread by anders_tung | last post: by
11 posts views Thread by Markus Breuer | last post: by
3 posts views Thread by Mark | last post: by
2 posts views Thread by janet | last post: by
7 posts views Thread by fyi85 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.