Open huzefaalid opened 7 years ago
Also, try googling:
atomikos not committing spring hibernate
And limit results to the past year or two. You’ve got a lot of moving pieces there, and the odds of it being a bug vs configuration is extremely low.
Thanks Brett for prompt response. I am using Hibernate 5 and spring 4.3.11 as a version. i found working with Atomikos XA DataSource but getting issue with HikariCP by putting autocommit as false.
@vladmihalcea Any ideas here either?
i am facing one issue while using hikariCP for oracle DB connection. I am using atomikos for transaction management.
HikariCP is a RESOURCE_LOCAL Connection Pool while Atomikos is a JTA Transaction Manager. You can't use a RESOURCE_LOCAL Connection Pool with an XA Transaction. You need a JTA DataSource which allows the JTA Transaction Manager to enlist the XaResource.
For more details, check out Atomikos documentation.
Dear Brett,
i am facing one issue while using hikariCP for oracle DB connection. I am using atomikos for transaction management. Problem if i am keeping autocommit as false transaction is not getting committed although Jta is calling commit operation. Please find my config files for the same. <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:jpa="http://www.springframework.org/schema/data/jpa" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.1.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.1.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.1.xsd http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.1.xsd http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">