Hi,

I want to catch an exception, then insert a document representing the
failure then rethrow the original exception.  The xdmp:rethrow() appears
to cause the insert to get rolled back.  I have tried wrapping the
xdmp:document-insert call in xdmp:invoke with isolation set to
different-transaction, but the insert still does not persist.  The
module is called from a pipeline, so it is important that I report the
failure condition.  While I could do the insert in a following pipeline
triggered by the failure, I am concerned that there might be a
circumstance under which the following pipeline might not get executed
and the insert would never take place.  

Is there a way to persist the insert within the catch block?  Am I being
overly paranoid in worrying that the insert would never take place if
done in a following pipeline?

Thanks.

Bob Runstein
_______________________________________________
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general

Reply via email to