Community
Participate
Working Groups
Code that may be invoked in a transaction context needs to be able to detect that context and get some key properties (such as read-only-ness). Currently, it is a programming error to attempt to start a read-write transaction in a read-only context, but code has no way to detect when it would violate that rule.
If one really needed to introspect then they could always do the following: ((TransactionalEditingDomainImpl)editingDomain).getActiveTransaction().isReadOnly() No plan to fix this.