Questions tagged as 'jta'

1
answer

WildFly 11 does not recognize MySQL driver when deploying

I set up my Java Web project to use JTA when transacting with the Database. My project has 4 Maven modules, one is unique to the model classes and to the persistence layer. When I compile in Maven the result is success, but when trying to upload...
asked by 09.02.2018 / 03:07
0
answers

How to use junit to test jax rs on wildfly

I created the following test to validate the register but instead of returning 201 with the created resource is generating this generic error. My DAO is working alone in a normal way (I created a list address using it) Would you have any clue wh...
asked by 11.06.2018 / 19:10
2
answers

Extract JDBC Connection from EntityManager using JTA

In a JavaEE environment, is it possible to extract the JDBC connection ( java.sql.Connection ) using JTA ? I have a datasource in WildFly, where I inject as follows: @PersistenceContext private EntityManager entityManager;...
asked by 08.01.2018 / 19:47
1
answer

Problem with User-Managed Transaction and Flush using JTA and Arquillian

I'm doing some tests with JUnit and, to inject dependencies on it with ICD, I adopted Arquillian. But, there is a problem I did not figure out how to solve without using the flush() method of EntityManager . Basically, I need to...
asked by 08.02.2018 / 18:19