I have a quarkus app (3.7.2) with a reactive endpoint "E1" that has a collaborator "C1" annotated as ApplicationsScoped. C1 calls a mongo repository class "R1" that persists a document in the database (also annotated as ApplicationScoped). If I use the Panache.withTransaction method within the endpoint E1 it's all good, but if I use it within C1 I get the error "java.lang.IllegalStateException: state should be: ClientSession from same MongoClient". Why is that? I also tried to switch from ApplicationScoped to Singleton but nothing changed.
0
There are 0 best solutions below
Related Questions in QUARKUS-PANACHE
- Why does Hibernate execute two SELECT queries instead of one when using @ManyToOne(fetch = FetchType.EAGER)
- Passing Constant Value from ConfigProperty in Quarkus
- Quarkus PanacheRepository persist() not storing to MySQL
- persist multiple entities with reactive quarkus and hibernate/panache
- Is Quarkus ever returning an instance of HibernateProxy
- How to perform atomic document updates using PanacheMongoRepository?
- @TestReactiveTransaction not rollbacked Quarkus Panache Hibernate reactive & mutiny
- Reuse (generated) entities between OpenAPI and AsyncAPI
- Can't use panache withTransaction in bean collaborator thta connects to mongo with the reactive implementation
- Equivalent of Spring's BeanUtils.copyProperties(source, dest, notCopiedAttrNames[]) in Quarkus? How to easily copy a bean's attributes onto another?
- Refreshing mongo credentials in Quarkus
- Quarkus Panache Transactional how to close db connections properly
- quarkus unable to name a datasource "query"
- How to query multiple columns using PanacheMongoRepository in Java
- How to $push an object using MongoDB with Panache on Quarkus
Related Questions in QUARKUS-REACTIVE
- SmallRye InMemoryConnector().clean is not working when running multiple integration test at the same time
- Is there anyway to mock Emitter in Quarkus?
- Quarkus reactive messaging rabbitmq Connector with client certificate authentication
- Missing @WithSession with quarkus-resteasy-reactive causes java.lang.IllegalStateException: No current Mutiny.Session found
- prevent sending message to unknown kafka topic when topic is defined programatically in Quarkus smallrye
- How to identify annotations of invocated jax-rs method in resteasy filter within quarkus reactive context
- Quarkus and Panache have Example API?
- How to instruct the QuarkusApplication to wait until the reactive vertx MySQLPool completes the execution of executeBatchAndForget statement?
- Quarkus Mutiny and Imperitave vs Reactive
- Quarkus static content response filter
- Running out of SQL connections with Quarkus and hibernate-reactive-panache
- Update array object mongoDB
- Errors after switching to quarkus-resteasy-reactive
- Adding Cache Mongodb Panache Quarkus Reactive
- Quarkus reactive client - sending Multipart from ByteArray
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?