Skip to content

Possible bug when using transactions and TransactionalEventListener #1776

Open
@jsaramago

Description

@jsaramago

Hi,

I'm trying to use transactions and TransactionalEventListener, but it seams that spring have some incompatibly issue with this in the version 3.1.1 (I had this working on the version 2.7.13).

When the transaction is committed the TransactionalEventListener isn't been triggered and on the logs I got this entry:

2023-07-05T10:48:35.333+01:00 DEBUG 6435 --- [       cb-txn-6] actionalApplicationListenerMethodAdapter : No transaction is active - skipping org.springframework.context.PayloadApplicationEvent[source=org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@65e61854, started on Wed Jul 05 10:48:32 WEST 2023]

Also if I check my bucket I got some extra documents with binary values:
image

In the file couchbaseTransactions.zip is possible to check my current approach to get this working.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions