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
- Is there a way to consume payloads from kafka without using @Incoming (Quarkus, smallrye, kafka)?
- Quarkus Kafka KStream mocking
- How to fix the incompatibility issue for Vertx-core 4.5.4 version with smallrye-reactive-messaging-kafka
- Quarkus Reactive: post-process the value returned by the Uni?
- How to test reactive APIs in Quarkus using RestAssured
- Issue with AsyncHealthCheck in extension
- Can't use panache withTransaction in bean collaborator thta connects to mongo with the reactive implementation
- No stream() methods in quarkus 3
- Using @ResponseObject with Quarkus resteasy reactive client
- Does quarkus reactive sql client support tracing?
- The current operation requires a safe (isolated) Vert.x sub-context,
- How to share a netty thread pool in Quarkus application
- invoke vs map in Mutinity java reactive code
- Illegal pop() with non-matching JdbcValuesSourceProcessingState
- Deserialisation using Qurkus.io and rest-client-reactive-json not working
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 # Hahtags
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?