It has recently been decided that Jakarta Transaction specification would allow for marking the transaction as read-only one. See full discussion here:
jakartaee/transactions#220
I believe this feature may have implications on Connectors specification. There are two modes on transaction operation and both of them may be impacted:
- transaction across multiple resource managers (8.2.1) - in this case application server would have to make sure that read-only contract is being held f.e. by making sure that there is an attempt to put a resource into read only mode during enlistment and notifying transaction manager if this attempt failed. On one hand, this contract is described in Transaction specification but it may be hinted here as well as one of the sub-points to emphasize that read-only behavior has to be supported.
- local transaction (8.2.2) - local transaction doesn't rely on Transactional annotation, so it was supposed to support read-only hint it has to be added to Connector interfaces. It seems to me that this feature may be useful here as well. Simple, one database configurations, may often use local transaction configuration and JPA specific mechanism mentioned in transaction discussion attached above (f.e. lack of dirty tracking) may be beneficial.
It has recently been decided that Jakarta Transaction specification would allow for marking the transaction as read-only one. See full discussion here:
jakartaee/transactions#220
I believe this feature may have implications on Connectors specification. There are two modes on transaction operation and both of them may be impacted: