From: rameshkancherla <ram...@ya...> - 2008-11-25 06:22:16
|
Hi, This is Ramesh. I am implementing xforms and eXist xml database in my application. i have to implement transaction management in my application. while child node is successfully submitted. but parent node inserting is failure. I implemented these two actions in single transaction. how do i rollback the first action in xml eXist database. can any please give me suggestion how do I implement transaction management here. Thanks & Regards Ramesh K -- View this message in context: http://www.nabble.com/exist-database-transaction-management-tp20666070p20666070.html Sent from the exist-open mailing list archive at Nabble.com. |
From: Wolfgang M. <wol...@ex...> - 2008-11-25 12:38:36
|
> This is Ramesh. I am implementing xforms and eXist xml database in my > application. i have to implement transaction management in my application. > while child node is successfully submitted. but parent node inserting is > failure. I implemented these two actions in single transaction. how do i > rollback the first action in xml eXist database. I'm not sure I understand the question, but eXist only supports transactions internally, i.e. transactions are not visible to users and there's no explicit rollback mechanism. You would need to implement this on the application layer. Wolfgang |
From: rameshkancherla <ram...@ya...> - 2008-11-26 05:58:26
|
hi Wolfgang, do I do any configuration in exist database for supporting transactions i am using xforms and xquery in application layer. where can I implement transaction logic. or is there any language for implementing transactions for eXist database can you please give me suggestion Thanks & Regards Ramesh K Wolfgang Meier-2 wrote: > >> This is Ramesh. I am implementing xforms and eXist xml database in my >> application. i have to implement transaction management in my >> application. >> while child node is successfully submitted. but parent node inserting >> is >> failure. I implemented these two actions in single transaction. how do i >> rollback the first action in xml eXist database. > > I'm not sure I understand the question, but eXist only supports > transactions internally, i.e. transactions are not visible to users > and there's no explicit rollback mechanism. > > You would need to implement this on the application layer. > > Wolfgang > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > > -- View this message in context: http://www.nabble.com/exist-database-transaction-management-tp20666070p20695217.html Sent from the exist-open mailing list archive at Nabble.com. |
From: Wolfgang <wol...@ex...> - 2008-11-26 09:03:07
|
Hi Ramesh, > do I do any configuration in exist database for supporting > transactions i am using xforms and xquery in application layer. where can I implement > transaction logic. As I already said, eXist doesn't support user-controlled transactions. You have to handle this on the application layer, e.g. by using an XQuery which checks the data posted by your xform. But we would need to know more details to suggest anything. Wolfgang |
From: Adam R. <ad...@ex...> - 2008-11-26 14:59:35
|
If you are using XQuery update extensions you may be able to use the batch transaction pragma which will cause all the xquery updates within that pragma to be committed as a single transaction. Otherwise if you use XUpdate then I think an entire XUpdate document is treated as a single transaction 2008/11/26 rameshkancherla <ram...@ya...>: > > hi Wolfgang, > > do I do any configuration in exist database for supporting > transactions > i am using xforms and xquery in application layer. where can I implement > transaction logic. or is there any language for implementing transactions > for eXist database > > can you please give me suggestion > > Thanks & Regards > Ramesh K > > > Wolfgang Meier-2 wrote: >> >>> This is Ramesh. I am implementing xforms and eXist xml database in my >>> application. i have to implement transaction management in my >>> application. >>> while child node is successfully submitted. but parent node inserting >>> is >>> failure. I implemented these two actions in single transaction. how do i >>> rollback the first action in xml eXist database. >> >> I'm not sure I understand the question, but eXist only supports >> transactions internally, i.e. transactions are not visible to users >> and there's no explicit rollback mechanism. >> >> You would need to implement this on the application layer. >> >> Wolfgang >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> >> > > -- > View this message in context: http://www.nabble.com/exist-database-transaction-management-tp20666070p20695217.html > Sent from the exist-open mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > -- Adam Retter eXist Developer { England } ad...@ex... irc://irc.freenode.net/existdb |