As per Spec, EJB doesn't support nested transactions, so what I wanted to know is, assume there are 2 classes (Parent and Child). Parent call is a stateless session bean and Child is a plain vanilla java service (not an EJB). Since EJB's by default use Container Managed Transaction, does adding @TransactionAttribute(REQUIRED_NEW) annotation in the method in Child cause a new Transaction to be created or is simply ignored by the container?
1
There are 1 best solutions below
Related Questions in JAKARTA-EE
- How can I calculate the number of matches of a jakarta.ejb.ScheduleExpression within a time interval in Java?
- How to connect to cloud sql when using app engine instance in java 21 runtime?
- Glassfish 7.0.12 adds question mark to URL when running JAVA EE Application
- Weblogic: The Message Driven Beans in the war file are not reflecting in Weblogic 14.1.1
- Jakarta EE 10 serializing person entities results in recursion checker exception (from org.eclipse.yasson.internal.serializer.RecursionChecker)
- EJB transactions behaving differently on Wildfly 8 between Windows and Linux deployments
- Is EntityManager injected with @PersistenceContext to a @RequestScoped CDI bean thread-safe?
- Redirect user based on his Role in Jakarta EE web app
- CXF web service deployed with docker compose won't work
- Messages won't reach the JMS backend in Weblogic JMS (BEA Server)
- Using XML as config-property value
- JEE-Transaction- vs. JPA Entity Management
- Jakarta CDI force bean construction/register legacy event listeners
- WildFly localhost 'forbidden' access
- WSSTUBE0025: Error in Verifying Security in the Inbound Message (Security Requirements not met - No Security header in message)
Related Questions in EJB
- entity classes are not showing when trying to create new session beans for entity classes in netbeans 9.0
- How can I calculate the number of matches of a jakarta.ejb.ScheduleExpression within a time interval in Java?
- Migrating TomEE 7.1.2 to 9.1.2 throws javax.naming.NameNotFoundException: Name "nullDatabasePropertiesServiceImplLocal" not found
- LockType.READ at class vs method level
- How to see the transaction a method is in, in JBoss?
- Weblogic: The Message Driven Beans in the war file are not reflecting in Weblogic 14.1.1
- EJB transactions behaving differently on Wildfly 8 between Windows and Linux deployments
- Does Infinispan TransactionManagerLookup support WebSphere Liberty?
- WebSphere Liberty BASE transaction failure
- Java: Lazy object storage with auto key from stack trace
- Handle transactions with BMT
- Creating EJBContainer with glassfish embedded
- Remote EJB server shutting down
- Deploying EJB 2.0 in wildfly 30.0.0 error: Could not find method public abstract boolean javax.ejb.EJBObject.isIdentical
- XDoclet-based Stateless Session Bean Compatibility Issue: ClassCastException in WebSphere 9.0.5
Related Questions in EJB-3.1
- Stop Execution of @Schedule timer on multiple Nodes
- Deploy encrypted EAR file in wildfly
- Do I need to clear the reference of return object from EJB Stateless Bean?
- How to call a remote EJB 3.1 with its client on OpenLiberty
- Exception in thread "P=69052:O=0:CT" java.lang.ClassCastException: org.omg.stub.java.rmi._Remote_Stub
- EJB update bean property at runtime
- Weblogic 12c spent several minutes during startup resolving EJB references
- Does adding @TransactionAttribute(REQUIRED_NEW) in a method which is invoked from a Stateless Bean(which already has REQUIRED) work in EJB 3.1?
- Make <resource-ref/> optional in the sense that deployment does not fail when a JNDI name is not pointing to a valid resource
- is it possible to create Singleton non-persistent ejb timer?
- Wildfly 13 ejb stateless session bean not removed from pool
- EJB Major Distinctions from other Technologies that perform the same function?
- Details with parameter and datatable for child entity
- EJB over HTTP: Intercepting requests and responses
- java.lang.NoClassDefFoundError: org/jboss/logging/Logger
Related Questions in EJB-3.2
- Wildfly30 - authentication between WAR and EJB
- Usage of Singleton EJB with CMC and CMT to avoid Hibernate's "Row was updated or deleted by another transaction"
- EJB calls over HTTP | client Authentication issue
- Is it important to delete deleted from code timers from jboss_ejb_timer. EJB3. POSTGRES
- Cannot implement Java remote interface to communicate with EJB application running on Websphere Liberty
- HTTP Request from EJB Bean
- Not rollback in multi-tenancy with hibernate and JakartaEE
- Does adding @TransactionAttribute(REQUIRED_NEW) in a method which is invoked from a Stateless Bean(which already has REQUIRED) work in EJB 3.1?
- Injection causes WELD-001408: Unsatisfied dependencies
- Lookup Remote EJBs on Liberty (wlp-javaee8.21.0.0.8)
- Wildfly JavaEE 8 - Double initialization of Singleton EJB
- Error finding remote EJB with Spring Boot war app on Wildfly
- Understanding EJB Architecture and Implementation
- Are Optional ElementCollections Possible In Hibernate
- Assuming a CLI or Swing interface client, how is a remote Bean accessed through Liberty
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?
Nested transactions, not supported by JEE, have an active relation between the outer and the inner (nested). According to Wikipedia they are "implemented differently in different databases", so cannot find a common definition or a set of common behaviors. Many databases do not even support them.
What JEE/EJBs do is (quoting from EJB spec v3.2, ch. 8.6.3.4, emphasis mine):