Hi,
   I have a requirement where on page submit i need to persist both job and
repository connection.  To maintain atomicity i added another level of
transaction at the top level. But i am getting
"org.apache.manifoldcf.core.interfaces.ManifoldCFException: Illegal lock
sequence: Write lock can't be within read lock or non-ex write lock" error.
when i debugged i noticed different transaction maintained in IDBInterface.
Please let me know when to use which transaction. i googled but did not
find sufficient information on below transaction levels.

public static int TRANSACTION_ENCLOSING = 0;
  public static int TRANSACTION_READCOMMITTED = 1;
  public static int TRANSACTION_SERIALIZED = 2;
  public static int TRANSACTION_REPEATABLEREAD = 3;

Basically first i am trying to persist repository connection and if i get
error while persisting job then it should roll back repository connection
which it persisted already.

Thanks,
Jitu

Reply via email to