By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,089 Members | 2,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,089 IT Pros & Developers. It's quick & easy.

pymqi commit/rollback

P: 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
Share this Question
Share on Google+
1 Reply


bartonc
Expert 5K+
P: 6,596
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.