1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[JBoss] Which dependency for showing transaction in jboss 7.4: run methods of a @Asynchronous...

Discussão em 'StackOverflow' iniciado por Stack, Maio 1, 2025.

  1. Stack

    Stack Membro Participativo

    I would like to add the following code

    try {
    Transaction transaction = TransactionManager.transactionManager().getTransaction();
    ...
    } catch (SystemException e) {
    throw new RuntimeException(e);
    }


    I added the dependency:

    <dependency>
    <groupId>org.jboss.narayana.jta</groupId>
    <artifactId>narayana-jta</artifactId>
    <version>5.11.3.Final</version>
    <scope>provided</scope>
    </dependency>


    But I get:

    java.rmi.RemoteException: Invocation failed; nested exception is:
    javax.ejb.EJBException: WFLYEJB0442: Unexpected Error


    So how do I do that?

    Also: I tried to lookup which version of narayana-jta my jboss uses. How do you do that?

    The reason I want to do this is to see if a new transaction is started when I make a session bean @Asynchronous.

    Continue reading...

Compartilhe esta Página