掲示板

Transactions in Document Library

9年前 に Stefano A によって更新されました。

Transactions in Document Library

New Member 投稿: 1 参加年月日: 12/09/26 最新の投稿
Hello emoticon,

do you know if Liferay's Document Library offers transactions + rollback? For example, is it possible to update N different documents atomically inside one transaction?

Example scenario:
- Create one service with Service Builder
- Execute N calls (e.g. to DLAppServiceUtil.updateFileEntry, increasing the document version) inside the service
- If the update on the last file fails, throw (e.g. PortalException) to the caller

If I use DBStore everything is fine (the previous updates are rolled back).
But in my scenario using DBStore is not an option (for performance reasons).

So, when I use FileSystemStore (or AdvancedFSS):
- the versions on DB are OK (rolled back)
- BUT the new version of the files remain inside the file system store (in data\document_library\...)
This situation leads to a DuplicateFileException when a new version of one of those files is checked in.


Do you know if Liferay can take care of those files?


Thank you,
S.