Hi all:

I'm developing a webservice that manage documents through documentManager. 
The problem is I can't rollback the trasacction when an exception success. The 
sample code:

                manager = Framework.getService(RepositoryManager.class);        
    
                repo = manager.getRepository(repository);
                session = repo.open();          
                
                
                nuevoDoc=session.createDocumentModel("model");
                nuevoDoc = session.createDocument(nuevoDoc);
                
                if(nuevoDoc!=null){
                        throw new RollbackClientException("Error");
                }

I throw RollbackClientException but the document nuevoDoc was created and exist 
in the repository.
How can I rollback in webservices?

Thanks in advance,
Miguel
--
Posted by "mamlspa" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=2702#7728>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to