How to roll back work item which is created using MQ wotk item creation API (Java). If an application (EJB) is creating a wotk item uding API call, and if there is an exception within a business transaction, how this work item is deleted from MQ work item list.
This problem might arise if work item is deleted when work is completed.
Is there generic solution to control work item creation/deletion actives from application.
Can these calls be put in the scope of business transaction.
Thnx for prompt reply john.
Yes I mean it process instance.
I am calling createAndStartInstance() method from EJB.My Problem is that if any exception comes How can I roll back / Delete the work item which was created by that method call.As createAndStartInstance() call is done by MQWF API not under EJB Transaction Control.Can I bring this call in single transaction (i.e EJB Transaction). How can I roll back the effect of these method call.
[ This Message was edited by: mqwhelp on 2001-12-24 10:32 ]
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
Unfortunately, I don't think you can. You might want to check with the IBM Developers on this, but I am pretty certain that this is NOT possible. You would have to issue the TerminateInstance call to reverse the creation of the instance.
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