Hi there,
I am having this problem on deadlock(or at least i think thats what it is!) and have checked out the rest of the messages on this forum if someone else has faced this same problem but apparently not. ok this is what i am trying to do:
1) Add a document
2) get the same document out to print out
3) delete the same document
4) go back to step one.
This is a test case to test out the functionality of my application building on top of tamino.
The problem that i face is during the second iteration when after 4 goes back to 1,2,3 part 3 gets stuck in a delete operation when executing using the java tamino API. for the delete operation, i am using a x-query to perform the delete thru the TXMLObjectAccessor. I have verified that the first iteration is successful and it is always the second iteration that is stuck. in my code, prior to delete the document, i was reading it, so not too sure if the deleting operation is waiting for the read operation to release the lock( IF this is happening). if that is the case, then how did the first iteration manage to pass? some of the other stuff that i did to prevent the delete operation from getting stuck is to close the reading TXMLObjectIterator using the close() methods and nulling the iterator. Another thing i did was to create a new TXMLObjectAccessor to delete the object. but none of these worked. I have even tried to check the state of the lock mode and the lockwaitmode by retrieve the getLockMode(), getLockwaitMode() of the TXMLObjectAccessor but both of them return null. The most puzzling thing is that if the code is not correct, then why is the first iteration successful but not the second? by the way, the reading and deleting operations are within a transaction.By right, despite the number of iterations, each iteration should be successful becos they are supposed to be independent of each other but it doesnt seem to be the case here.
Am i barking up the wrong tree here? or is there something i didnt do?
Anyone, please help. Thanks
#webMethods-Tamino-XML-Server-APIs#API-Management#webMethods