473,404 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 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 2739
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

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

Similar topics

3
by: DP | last post by:
Is there any command exists as "commit transaction" ? begin transaction < DML1 stmts > begin transaction < DML2 stmts > rollback transaction commit transaction which set of DML will be...
1
by: anders_tung | last post by:
Hi, I have a procedure which will call 3 functions. First function will update a record. Second function will delete a record. Third function will insert a record. Each function will return...
11
by: Markus Breuer | last post by:
I have a question about oracle commit and transactions. Following scenario: Process A performs a single sql-INSERT into a table and commits the transaction. Then he informs process B (ipc) to...
3
by: Mark | last post by:
If a java applicaiton using the type 4 driver calls a DB2 stored procedure, does the stored procedure need to do its own commit when updates are completed? If the stored procedure does a commit or...
2
by: janet | last post by:
HI, I had a question on auto-commit in DB2 EEE V8 on AIX V5. Here is my example.. there are two script A.sh , B.SQL A.sh is following:
1
by: Jason Huang | last post by:
Hi, I am just wondering how do we test the transaction's Commit and Rollback? How do we simulate a situation to let the transaction fail then Rollback? Thanks for help. Jason
7
by: fyi85 | last post by:
I have 8.1.5 on Windows 2003, when I do from CLP with auto commit off: db2 update table set column=something and then db2 terminate and then db2 connect to db db2 select updated column from...
1
by: Andrew Robert | last post by:
Hi everyone, Could someone help explain what I am doing wrong in this code block? This code block is an excerpt from a larger file that receives transmitted files via IBM WebSphere MQSeries...
3
by: Ralf Assmann | last post by:
Hi there, we have the following problem using a DB2 version 7 on z/OS, referring also <a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.