[jboss-jira] [JBoss JIRA] (WFLY-3801) Wrong Transaction behaviour for EJBs if JTS is enabled
Wolf-Dieter Fink (JIRA)
issues at jboss.org
Fri Oct 17 08:12:35 EDT 2014
[ https://issues.jboss.org/browse/WFLY-3801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012845#comment-13012845 ]
Wolf-Dieter Fink commented on WFLY-3801:
----------------------------------------
Steps to reproduce:
- new WildFly 9.0 instance
- copy ejb30/jpa/target/ejb30-jpa.jar to deployment folder
- start WF with standalone-full.xml
- run
java -cp $WF/bin/client/jboss-client.jar:target/test-classes:target/ejb30-jpa-client.jar org.jboss.wfink.ejb30.StatelessMain
AND
java -cp $WF/bin/client/jboss-client.jar:target/test-classes:target/ejb30-jpa-client.jar org.jboss.wfink.ejb30.StatefulRemoveMain
The correct invocation is shown with no issues
- run the attached CLI : bin/jboss-cli.sh -c --file=enableJTS.cli
- repeat the test
There are ARJUNA warnings and method failures for the test beans
> Wrong Transaction behaviour for EJBs if JTS is enabled
> ------------------------------------------------------
>
> Key: WFLY-3801
> URL: https://issues.jboss.org/browse/WFLY-3801
> Project: WildFly
> Issue Type: Bug
> Components: EJB, Transactions
> Affects Versions: 8.1.0.Final
> Environment: standalone-full profile with JTS enabled
> Reporter: Wolf-Dieter Fink
> Assignee: David Lloyd
> Attachments: enableJTS.cli, reproducer.zip, server.log
>
>
> If JTS is enabled the invocation of EJB's might show a arjuna warning for each method invocation:
> WARN [com.arjuna.ats.jts] (RequestProcessor-5) ARJUNA022261: ServerTopLevelAction detected that the transaction was inactive
> This is only the case if other resources are involved, i.e. a DB via JPA.
> If a simple bean is used (like ejb-remote quickstart) this warning is not shown.
> It looks like the transaction is local commited but in case of a SFSB @Remove method the result is a " WFLYEE0006: Failed to destroy component instance Instance of SFTestBean" and the lifecycle method @PreDestroy is not invoked.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list