File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes Tranasaction Rollback in JAVA LDAP API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Tranasaction Rollback in JAVA LDAP API" Watch "Tranasaction Rollback in JAVA LDAP API" New topic

Tranasaction Rollback in JAVA LDAP API

Madhav Kanneganti

Joined: Jan 20, 2012
Posts: 25

We have been using a single LDAP directory background to add, update, and/or delete attributes (values) by calling the following API (code snippet).

The above code works for single call on all attribute actions (add,update,remove), if any attribute fails in that call, all will be rolled back automatically because that API will takes care of transactions.

Now we got to do the same transactions on another LDAP directory after the first LDAP directory's successes, but here if any attributes fails during the second LDAP call, all in second will be rolled back and also need to rolled back in first LDAP changes also.

Do we have any transaction process in this API like JDBC API? I couldn't find anything like that, please give me advice how to control transactions in both LDAP directories?
I agree. Here's the link:
subject: Tranasaction Rollback in JAVA LDAP API
It's not a secret anymore!