Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support event handle after/before transactional commited #22961

Closed
pipinet opened this issue Jan 18, 2022 · 7 comments
Closed

Support event handle after/before transactional commited #22961

pipinet opened this issue Jan 18, 2022 · 7 comments
Labels
area/narayana Transactions / Narayana kind/enhancement New feature or request

Comments

@pipinet
Copy link

pipinet commented Jan 18, 2022

Description

Like Spring @TransactionalEventListener

https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/transaction/event/TransactionalEventListener.html

Implementation ideas

No response

@pipinet pipinet added the kind/enhancement New feature or request label Jan 18, 2022
@pipinet
Copy link
Author

pipinet commented Feb 28, 2022

Is there progress on this feature?

@zhfeng
Copy link
Contributor

zhfeng commented Feb 28, 2022

It seems that you can leverage the @Observes to get similar notification when transaction completes. please check some oberves tests in https://github.com/quarkusio/quarkus/tree/main/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/observers

Hope this is helpful !

@dreamlike-ocean
Copy link

不知我的实现是否符合您的要求 代码如下
https://github.com/dreamlike-ocean/codepieces/blob/main/quarkus_TransactionListener.java
——————————————————————————————————————————
I wonder if my implementation meets your requirements. The code is as follows:
https://github.com/dreamlike-ocean/codepieces/blob/main/quarkus_TransactionListener.java

@pipinet
Copy link
Author

pipinet commented Mar 1, 2022

@dreamlike-ocean
#2224

@yrodiere yrodiere added area/narayana Transactions / Narayana and removed triage/needs-triage labels Oct 26, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 26, 2022

/cc @mmusgrov

@mmusgrov
Copy link
Contributor

@pipinet can we close this one because there are some features already in quarkus that may help you to achieve what you need: Amos (zhfeng) referenced some tests in his comment on 28 Feb and there are also some CDI events that you can use to monitor the transactional scope (see #28709 )?

@pipinet
Copy link
Author

pipinet commented May 11, 2023

@mmusgrov yes, please.

@pipinet pipinet closed this as completed May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/narayana Transactions / Narayana kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants