Skip to content

Commit

Permalink
Using ArcContainer.select instead of instance
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Dec 19, 2023
1 parent 390f2ff commit 965a152
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void beforeDelivery(Method method) throws ResourceException {
Arc.container().requestContext().activate();
QuarkusTransaction.begin();
try {
Transaction transaction = Arc.container().instance(TransactionManager.class).get().getTransaction();
Transaction transaction = Arc.container().select(TransactionManager.class).get().getTransaction();
// Enlisting the resource so the message delivery is part of the transaction
// See https://jakarta.ee/specifications/connectors/2.1/jakarta-connectors-spec-2.1#transacted-delivery-using-container-managed-transaction
if (!transaction.enlistResource(xaResource)) {
Expand Down

0 comments on commit 965a152

Please sign in to comment.