If a method of service is marked as @Transactional with propagation nested, and inside it there are many calls to other @Transactional methods, each one of these methods will use its own session? It should represent many connections to db for just one method call no?
spring transactional nested open session?
704 Views Asked by Ignasi At
1
There are 1 best solutions below
Related Questions in SPRING
- Redirect inside java interceptor
- Spring RestTemplate passing the type of the response
- spring-integration-dsl-groovy-http return null when i use httpGet method
- Custom Spring annotation for request parameters
- Spring - configure Jboss Intros for xml with java config?
- HTTP Status 404 - Not Found in Spring 3.2.7
- AndroidAnnotations how to use setBearerAuth
- android I/O error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found
- Show login dialog when not authenticated yet
- Spring Data Rest supporting json and xml
- @Value annotation not resolved in a class that belongs to dependency jar
- Remove nested _embedded fields while using projections
- How to send Rest GET request that contains "#" value in url parameters?
- How to inject spring bean into Validator(hibernate)
- How to keep a variable in the URL when using Spring LocaleChangeInterceptor
Related Questions in HIBERNATE
- Hibernate Query Exception: Cannot create critieria on owning entity
- Using like to non-string columns in Grails
- Play Framework Unable to build entity manager factory when Working with PostGIS
- How namedparameter query blocks SQL injection
- Is it necessary to create an repository and a service for each entity?
- JPA, Hibernate can I do composite primary key which one element is foreign kay @OneToMany?
- How to convert Hibernate List to String?
- Hibernate Lazy loading not work in OneToOne relation
- Hibernate Search Faceting not working
- JPA and web app
- How to add an extra constraint to joined-subclass in hibernate
- JPA findDistinctPropertyBy magic method doesn't work as expected when using spring-boot-starter-jpa
- How to initialize the log4j system properly?
- i'm stuck when I'm trying to make two primary key's in hibernate
- JPA, how can i have two queries, one use lazy and one use eager for fetching?
Related Questions in ANNOTATIONS
- @Value annotation not resolved in a class that belongs to dependency jar
- How to use annotorious with angular
- Annotator dependencies: UIMA Type Capabilities?
- Symfony2 - Custom annotation loading
- What is the point of the name method in the symfony2 annotation?
- Only display annotations within visible mapview area
- Java annotation: validating primitives inside a list via an annotation
- Can't get custom annotation to work within test context using spring boot
- Technical debt on custom web rule in sonarqube 5.1
- Python - Add annotation in subplot imshow
- Make model-schema capture element addition on an array field request
- sal annotation (prefast) to enforce number of variadic args
- Changing the size of the UIImage
- getAllMembers from Elements does not return Parent's member annotations
- Pluggable Annotations Java 6 new feature
Related Questions in TRANSACTIONAL
- @Transactional with xml-defined bean not working. (OSGi)
- The previous persisted data always being overlapped after the new persisting
- Transaction Interceptor CDI JPA JavaSE
- Annotation @Transactional does not working
- How to write transactional spout for storm trident
- Exception - createQuery is not valid without active transaction
- Dependent rollback among different DAO implementation
- JOOQ: Is a single statement implicitly transactional, or do I still have to wrap it in a transactional block?
- Spring Data Redis - @Transactional support on Repository
- Why my spring @Transactional with REQUIRED can't rollback?
- Grails GORM locks table when updating a DB table
- JavaFX + Spring (JDBC & @SpringBootApplication & @Autowired & @Transactional)
- Spring @Transactional(isolation=Isolation.READ_UNCOMMITTED) vs Spring Data @Lock(LockModeType.None)
- Spring boot @Transactional doesn't work
- spring transactional nested open session?
Related Questions in HIBERNATE-SESSION
- Hibernate : session.get(...) vs session.getNamedQuery(...)
- keep open the Hibernate session with spring MVC application
- spring transactional nested open session?
- Bad configuration of hibernate for spring application?
- Hibernate first level cache - does it Sync?
- Hibernate nested transactions / sessions and proxy associations
- Data not retrieving after saving in database in hibernate 4
- Spring Boot - Automatically Enable Hibernate Session Filter When the Transaction Starts
- No Hibernate Session bound to thread with generic-hibernate-dao library
- Good ideas for debugging Hibernate Session/Transaction errors?
- Check in-memory version of an object against the data in the database
- Why hibernate is saving values without transaction?
- why is database call sleeping after some limited call
- org.hibernate.HibernateException: Current transaction is not in progress after migrate to Hibernate 5
- Correct way to handle the session in hibernate
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?
It looks like
PROPAGATION_REQUIREDis better option for your purpose. From its javadoc:Support a current transaction; create a new one if none exists.
Refer this link for more details