[jboss-jira] [JBoss JIRA] (WFLY-6919) Nested Call of EJBs from one call of client from frontend works with @TransactionAttribute(REQUIRES_NEW)

Tom Jenkinson (JIRA) issues at jboss.org
Thu Aug 4 06:05:00 EDT 2016


     [ https://issues.jboss.org/browse/WFLY-6919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Jenkinson closed WFLY-6919.
-------------------------------
    Resolution: Rejected


Please discuss in the forums first: https://developer.jboss.org/en/wildfly

Please do consider tagging me in your discussion if you don't get feedback in a few days but it looks like an EJB issue (either in the server, or in the app) rather than a transaction one. 

> Nested Call of EJBs from one call of client from frontend works with @TransactionAttribute(REQUIRES_NEW)
> --------------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-6919
>                 URL: https://issues.jboss.org/browse/WFLY-6919
>             Project: WildFly
>          Issue Type: Bug
>          Components: EJB, Transactions
>    Affects Versions: 9.0.1.Final
>         Environment: Java 8
>            Reporter: Serg Jakean19019
>            Assignee: Tom Jenkinson
>
> Case: 
> - client calls ejb1 through frontend
> - ejb1 (stateless) process and saves some info
> - ejb1 calls method ejb2 (stateless)
> - ejb2 access saved info by ejb1 and saves something too
> if Method of ejb2 has Annotation @TransactionAttribute(REQUIRES_NEW) than it works. In other case there is error. For example: javax.ejb.EJBTransactionRolledbackException: WFLYJPA0060: Transaction is required to perform this operation (either use a transaction or extended persistence context.
> Ejbs are injected simply (@Inject) in other Ejbs
> These calls must be one transaction to tell the truth. What is right solution and way? Or is there any problem in Transaction Management in Wildfly?
> Sorry if it is no Wildfly issue and concerns discussion in forum.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list