Hi,

Does  XCC/J provide any function to lock/unlock access to a document?

regards.

  ----- Original Message -----
  From: "eric schmidt"
  To: [email protected]
  Subject: [MarkLogic Dev General] xcc api - lock
  Date: Sat, 2 Aug 2008 19:16:23 -0500

  Hello everybody,

  I am new to marklogic and I have a very basic question about the xcc
  api. Is it possible to update a document with DOM and lock it while
  modifying?

  1- open a session
  2- get a document as DOM.
  3- lock the document (so nobody can update it).
  4- modify the DOM document
  5- insert the document in the db
  6- unlock the document.

  I found the XQuery built-in function xdmp:lock-acquire, but it does
  not seem to work the way I want. I am stocked.

  thanks,

  eric




  -- Be Yourself @ mail.com!
  Choose From 200+ Email Addresses
  Get a Free Account at www.mail.com!
  _______________________________________________
  General mailing list
  [email protected]
  http://xqzone.com/mailman/listinfo/general

-- 
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to