How to call Wildfly Transaction Manager in Java Code?

411 Views Asked by At

What should be name of default transaction manager in wildlfy to be used in Java code.

Following is wildfly screen and i am not getting anyname here:

enter image description here

I am not getting any code related to same following is thing i am trying from codegeeks:

public static final String JBOSS_USER_TRANSACTION = "java:jboss/UserTransaction"; // ????

public static final String JBOSS_TRANSACTION_MANANGER = "java:jboss/TransactionManager"; // ???

JtaTransactionManager transactionManager = new JtaTransactionManager();
        transactionManager.setTransactionManagerName(JtaTransactionManager.DEFAULT_USER_TRANSACTION_NAME);
        final PlatformTransactionManager platformTransactionManager = transactionManager;
0

There are 0 best solutions below