Skip to content
Discussion options

You must be logged in to vote

I ended up converting this filter to a CDI interceptor that takes part in the controller transaction automatically.

The alternative would have been to start a transaction manually in a ContainerRequestFilter and commit it in a ContainerResponseFilter.
Or if two transactions are not a problem, simply annotating the filter with @Transactional could also do the trick (haven't tried).

Thanks @geoand for the support!

Replies: 1 comment

Comment options

famod
Jan 11, 2022
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by famod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant