@Transactional(Transactional.TxType.REQUIRED) with Mongo Panache DB is problematic

87 views
Skip to first unread message

David Hoffer

unread,
Aug 23, 2022, 1:51:31 PM8/23/22
to Quarkus Development mailing list
We would like all of our JAX-RS services that use a PanacheMongoRepository<> datasource to use @Transactional(Transactional.TxType.REQUIRED).

This works fine if the app is deployed in a clustered Mongo DB environment, however when deployed in a single Mongo instance environment it causes runtime errors saying it can't handle/create transactions.

So our only workaround was to remove all usages of @Transactional(Transactional.TxType.REQUIRED) which then does work in both environments.

We would like to see Quarkus improved so that we can use @Transactional where it can be supported and just warn in single Mongo instance environments where it can't be supported.  Even better would be to support @Transactional in single Mongo instances as well.

-Dave 

David Hoffer

unread,
Aug 23, 2022, 2:24:03 PM8/23/22
to Quarkus Development mailing list

--
You received this message because you are subscribed to a topic in the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/quarkus-dev/QfwsF2MRMwk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/28ce80f3-6ebf-4f83-8692-50462c531dd7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages