wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Tranasaction Rollback in JAVA LDAP API" Watch "Tranasaction Rollback in JAVA LDAP API" New topic
Author

Tranasaction Rollback in JAVA LDAP API

Madhav Kanneganti
Greenhorn

Joined: Jan 20, 2012
Posts: 25
Hi,

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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tranasaction Rollback in JAVA LDAP API
 
Similar Threads
Modifying an attribute in LDAP using JNDI
javax.naming.directory.SchemaViolationException on LDAP
Directory swaping
Modifying an Attribute
NoInitialContextException