Hi,

I have two problems :
1)  This code returns null :
      TransactionService transaction =
            (TransactionService) collection.getService("TransactionService",
"1.0");
Is it not implemented or service name is wrong ?
2) it seems XUpdate operations are not atomic, I use something like this :
     [java] <xu:modifications version="1.0"
xmlns:xu="http://www.xmldb.org/xupdate";>
     [java] <xu:append select="/document" >
     [java] <xu:element name="TEST_PERSISTENT">
     [java] <xu:attribute name="ID">-6706377421628485231</xu:attribute>
     [java] <parent_object>8234415960891809488</parent_object>
     [java] </xu:element>
     [java] </xu:append>
     [java] <xu:append select="/document" >
     [java] <xu:element name="TEST_PERSISTENT">
     [java] <xu:attribute name="ID">8609807512306400222</xu:attribute>
     [java] <s_1_str_val>Q</s_1_str_val>
     [java] <INT_VAL>8</INT_VAL>
     [java] <BOOL_VAL>true</BOOL_VAL>
     [java] <date_Val>02.5.23 18.45</date_Val>
     [java] <FLOAT_VAL>2.0</FLOAT_VAL>
     [java] <parent_object>8234415960891809488</parent_object>
     [java] </xu:element>
     [java] </xu:append>
     [java] </xu:modifications>
If I kill client during this operation, some modifications are done and some
are not.
     <xu:modifications version="1.0"
xmlns:xu="http://www.xmldb.org/xupdate";>
      <!-- EXPECTING ATOMIC OPERATION  -->
     </xu:modifications>



Reply via email to