Hi Santhosh, There should be explicit transaction management functions in the XCC library, but that requires a connection from Java or .Net.
You can also put the update statements in one Xquery and call the Xquery through HTTP (or from XCC for the same matter). Statements in one Xquery file are typically executed as one transaction, and rolled back all together if any exception occurs. (This, unless you explicitly use a semi-colon in the Xquery main body. That ends the transaction for the first part of the Xquery body, and opens a new one.) Kind regards, Geert > Drs. G.P.H. Josten Consultant http://www.daidalos.nl/ Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 http://www.daidalos.nl/ KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: [email protected] > [mailto:[email protected]] On Behalf Of > Santhosh Raj > Sent: dinsdag 5 mei 2009 14:22 > To: General Mark Logic Developer Discussion > Subject: [MarkLogic Dev General] How to do Transaction > Management in Marklogic - reg., > > > Hi all, > > Suppose I have 2 xml documents (doc1.xml , doc2.xml > ), I have to insert nodes to both documents. > > If i have inserted successfully in doc1.xml and if any error > occurs while inserting to doc2.xml, then i have to rollback > the node inserted in the doc1.xml > > How to manage it? > > Thnaks and Regards, > Santhosh Rajasekaran > > =====-----=====-----===== > Notice: The information contained in this e-mail message > and/or attachments to it may contain confidential or > privileged information. If you are not the intended > recipient, any dissemination, use, review, distribution, > printing or copying of the information contained in this > e-mail message and/or attachments to it are strictly > prohibited. If you have received this communication in error, > please notify us by reply e-mail or telephone and immediately > and permanently delete the message and any attachments. Thank you > > > _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
