Serg Jakean19019 created WFLY-6919:
--------------------------------------
Summary: 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)