AnsweredAssumed Answered

Role of "READ_ONLY" transactions vs no transaction

Question asked by davidraines on May 29, 2017
Latest reply on May 30, 2017 by afaust

As a general practice, when developing Webscripts that only read data:

  • should should you specify "READ_ONLY" transactions in the webscript's configuration, or should you specify no transactions required?  
  • Is it safe to attempt to read data from a "nodeService" or other Alfresco Service Registry object without first creating a transaction?


I know that in Hibernate / JDBC, the answer is to always create a transaction:

java - Why do I need Transaction in Hibernate for read only operation? - Stack Overflow 


But I'm not sure how concepts like that apply to Alfresco webscripts and Alfresco transactions.