Files
alfresco-community-repo/source/java/org/alfresco/repo/web/scripts
David Caruana 565c57d893 Web Script Framework enhancements: ReadOnly transactions, Buffered Responses
- additional 'allow' attribute on <transaction> element in web script descriptor
   - values: readonly, readwrite (default)
   - readonly means that the whole web script executes in read transaction
   - readonly lighter weight; no flushing, no cache checks/updates
- transaction aware web script response buffers
   - only commits to response when trx is committed
   - fixes ALFCOM-2497 - CMIS: createFolder & immediately add document can fail
   - also means errors half-way thru response result in clean response with error contents only
   - readonly transactions are not buffered
- WebScript RepoStore now uses ReadOnly transaction for gets
- CMIS getter Web Scripts set to ReadOnly transaction
- Fix up Web Script pattern that checks for WebScriptServletResponse using instanceof
   - no longer the case, as it may be wrapped in BufferedResponse
   - use getRuntime() instanceof WebScriptServletRuntime and/or
   - WebScriptServletRuntime.getHttpServletResponse/Request(WebScriptReponse r) - returns null, if none

Tests:
- Run CMIS Tests
- Run CMIS BulkCreateSystemTest (now working)
- Run Share

Suggestion:
- Update your 'read' web script descriptors to include <transaction allow="readonly">. This will improve repo performance significantly.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14670 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-11 18:25:59 +00:00
..
2009-05-01 12:59:21 +00:00
2009-03-12 21:48:15 +00:00
2008-11-28 12:52:11 +00:00
2009-03-12 21:48:15 +00:00
2008-12-19 12:15:59 +00:00
2009-04-20 14:53:04 +00:00
2008-12-19 12:15:59 +00:00
2009-03-12 21:48:15 +00:00
2009-03-12 21:48:15 +00:00
2008-12-19 13:22:28 +00:00
2009-03-12 21:48:15 +00:00
2008-12-17 14:28:44 +00:00