Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[WFTC-13] LocalUserTransaction provide methods to set it's availability #13

Merged
merged 1 commit into from
Feb 22, 2017

Conversation

ochaloup
Copy link
Contributor

This is done because of local transaction invoked in scope of
@transactional interceptor
(e.g. from Narayana cdi implementation) needs to know if it's fine to
being invoked that context if not exception is thrown.

3.7 Transactional Annotation:
If an attempt is made to call any method of the UserTransaction
interface from within the scope of a bean or method annotated with
@transactional and a Transactional.TxType other than NOT_SUPPORTED or
NEVER, an IllegalStateException must be thrown.

LocalUserTransaction setAvailability/isAvailable methods will be called through transactions spi from transaction Narayana cdi interceptor.

This is done because of local transaction invoked in scope of
@transactional interceptor
(e.g. from Narayana cdi implementation) needs to know if it's fine to
being invoked that context if not exception is thrown.

3.7 Transactional Annotation:
If an attempt is made to call any method of the UserTransaction
interface from within the scope of a bean or method annotated with
@transactional and a Transactional.TxType other than NOT_SUPPORTED or
NEVER, an IllegalStateException must be thrown.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants