I'm new in EJB. I've read that one of the side effects of bean-managed transactions (BMT) is that transaction doesn't propagates if we call method of another BMT bean. But due to the third ACID property (isolating) does it mean that the second method (inner) won't see the changes that were made in the first methods (outer)?
Bean-managed transaction: transaction propagation
688 Views Asked by VB_ At
1
There are 1 best solutions below
Related Questions in JAKARTA-EE
- Which Should i use for date,time,email in servlet?
- Simple JavaEE HTML GET/POST application
- Updating the message contents for a MessageDialog wicket
- Access roles from multiple applications
- How to compile an individual jsp file from command line
- DB2, Hibernate, JPA: Schema does not exist
- Spring load a file
- Execute RequestDispatcher after 5 seconds
- Hibernate Lazy loading not work in OneToOne relation
- Websphere 8.5.5 - shared session context not working
- withSchedule(ScheduleBuilder<SBT>) in the type TriggerBuilder<Trigger> is not applicable for arguments (MutableTrigger)
- Setting response header using interceptor?
- How to use the same ContainerRequestFilter for multiple projects?
- [Ljava.lang.Object; cannot be cast to List from a request SQL
- which should i use in request.getParameter in servlet?
Related Questions in JPA
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- How to create nested selects with sql?
- Play Framework Unable to build entity manager factory when Working with PostGIS
- Getting entity with a join table GAE
- 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?
- Hibernate Search Faceting not working
- EntityManagerSetupException for multiple joins and a sub query for NamedQuery
- JPA and web app
- JPA findDistinctPropertyBy magic method doesn't work as expected when using spring-boot-starter-jpa
- Inject EntityManager in SwitchYard Junit implementation
- QueryDSL where relationship may be null
- JPA, how can i have two queries, one use lazy and one use eager for fetching?
- Duplicate entry '[X]' for key '[Y]' on JPA repository 'save' operation. Saved entity has its key defined already
- Hibernate's bidirectional OneToOne relationship not working within the same class
Related Questions in TRANSACTIONS
- C# MySQL Transaction commit
- Multiple transaction managers - Selecting a one at runtime - Spring
- Django transactions: managing two different transactions atomically inside the overriding of save() method
- How can I add FOR UPDATE to a cakephp3 query?
- Why my mysql transaction is not working properly?
- Multiple Hibernate transactions in a JTA session
- Using transaction in Ruby On Rails controller method
- Google Analytics duplicate transaction id multiple domains
- How to limit dynamic queries to only accept select statements?
- combining rollback in two action rails 4
- Symfony2: transactions fail with "There is no active transaction."
- Can RPUSH and LPUSH in Redis race?
- PHP rollback on IBMi db2 doesn't work
- Error in OleDbTransaction
- Wildfly - Infinispan Transactions configuration
Related Questions in EJB
- Difference between JARs and EJB JARs from a usage perspective
- Arquillian Embedded Derby database columnDefinition="text"
- Weblogic 12c web application not start properly after server reboot
- EJB injection fails in custom ConstraintValidator on JPA persist
- EJB stateless bean can only return value, cannot print
- Is it possible to have Web & JPA & EJB in 1 project in Eclipse?
- Jackson error: java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/Versioned
- Wildfly - Infinispan Transactions configuration
- How do I change callerPrincipal from EJB timer?
- Why is my EntityManager not properly injected?
- how do I layer EJB3 and servlets correctly?
- How to fill @EJB annotated fields programmatically via glassfish container?
- Transaction fails with IJ000457, IJ000461 and IJ000356 on first time, but works thereafter
- Servlet not working in EJB Project in Intellij IDEA
- EJB injection not working in different classes
Related Questions in BEAN-MANAGED-TRANSACTIONS
- 2 BMT ejbs 1 single TX = impossible?
- Start/end transaction in separate EJB methods
- What is JTA with container managed transaction advantage
- TransactionImpleManager.suspend called implicitly
- How to propagate a client-side UserTransaction into a stateless session bean using BMT
- Why do EJB beans with bean-managed transactions act as a "transaction barrier"?
- Need of Transaction API in Java
- Glassfish: JTA/JPA transaction not rolling back
- Seam-managed transactions how-to
- WildFly 13 migration - Only session and message-driven beans with bean-managed transaction demarcation are allowed to access UserTransaction
- JPA/Hibernate: EntityManager.close() and IllegalStateException?
- What is the relationship between BMT/CMT and an application/container-managed EntityManager?
- Some CMT and BMT doubts in EJB?
- How do bean managed transactions work?
- Bean Managed MDB and Database exceptions
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?
Bean-managed transactions only means that you code the transaction boundaries in your bean yourself.
Whereas Container-managed transactions means that you let the container (i.e. the application server) do the dirty work of opening, closing, rollbacking, ... your transactions for you.
In both cases, usually some central TransactionManager is used to access the current transaction or create a new one.
If you use the same TransactionManager (and the same Transaction) in both methods, the inner method should see the changes of the outer.