pymqi commit/rollback

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nams
    New Member
    • May 2007
    • 1

    #1

    pymqi commit/rollback

    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.ba ckout(), the message still seems to be on the queue. Please advice.
    Code:
    import pymqi
    
    queueMgr = pymqi.QueueManager(None)
    mqCd = pymqi.cd()
    qManager = 'T1.THS.QM'
    qName = 'QL.SQ._MONDO__INPUT.01'
    qChannel = 'SYSTEM.TESTS.SVRCONN'
    qPort = 'ARCADE(1600)'
    queueMgr.connectTCPClient(qManager, mqCd, qChannel, qPort)
    mqQuery = pymqi.Queue(queueMgr, qName)
    queueMgr.put1(qName,"Test")
    queueMgr.backout()
    queueMgr.disconnect()
    Last edited by bartonc; May 2 '07, 07:18 PM. Reason: Added [CODE] [/CODE] tags
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by nams
    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.ba ckout(), the message still seems to be on the queue. Please advice.
    Code:
    import pymqi
    
    queueMgr = pymqi.QueueManager(None)
    mqCd = pymqi.cd()
    qManager = 'T1.THS.QM'
    qName = 'QL.SQ._MONDO__INPUT.01'
    qChannel = 'SYSTEM.TESTS.SVRCONN'
    qPort = 'ARCADE(1600)'
    queueMgr.connectTCPClient(qManager, mqCd, qChannel, qPort)
    mqQuery = pymqi.Queue(queueMgr, qName)
    queueMgr.put1(qName,"Test")
    queueMgr.backout()
    queueMgr.disconnect()
    This looks very cool. I wish that I had time to check it out.

    Comment

    Working...