@Predestroy method in @TransactionScoped bean is not called back at the end of the transaction in Quarkus 1.7.x
Issue
@PreDestroy
method in @TransactionScoped
bean is not called back when the JTA transaction is committed or rolled back.
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.transaction.TransactionScoped;
@TransactionScoped
public class ExampleTransactionalScopeBean implements ExampleTransactionalScope {
@PostConstruct
void init() {
...
}
@PreDestroy
void destroy() {
// issue: this method is not called back when the JTA transaction is committed or rolled back.
}
}
Environment
- Red Hat Build of Quarkus (RHBQ)
- 1.7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.