atomikos

change jta transaction timeout from default to custom

最后都变了- 提交于 2019-12-19 09:04:02
问题 I am using Atomikos for JTA transaction. I have following setting for JTA: UserTransactionImp userTransactionImp = new UserTransactionImp(); userTransactionImp.setTransactionTimeout(900); but when my code perform JTA transaction, then if it takes more than 5 minutes (which is default value) then it throws exception: Caused by: com.atomikos.icatch.RollbackException: Prepare: NO vote at com.atomikos.icatch.imp.ActiveStateHandler.prepare(ActiveStateHandler.java:231) at com.atomikos.icatch.imp

ResourceException: XA resource 'jdbc/wmsDatasource': resume for XID '..' raised -4: the supplied XID is invalid for this XA resource

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 04:57:42
问题 I am getting exception "the supplied XID is invalid for this XA resource" for one of my project to get records from DB ORACLE. I found some solutions for "raised 3 and 5" but could not get for "raised -4". Here I have attached log file for issue. com.atomikos.datasource.ResourceException: XA resource 'jdbc/abcDatasource': resume for XID '31302E38382E3232382E3131352E746D32343536363030353837:31302E38382E3232382E3131352E746D31303437393130' raised -4: the supplied XID is invalid for this XA

Programming BMT - UserTransaction

ε祈祈猫儿з 提交于 2019-12-12 03:06:03
问题 Is the complete programming of BMT based on UserTransaction interface? In other words, if I want to use BMT, is there any scenario when I would require more services than those provided by the UserTransaction interface. Why this question? If I use a different implementation of the transaction manager (such as Bitronix TM or Atomikos) and not the default provided by the container, is it just enough to inject the new TM into UserTransaction object? -Thanks 回答1: This is really limited to what

Automatically register XA Resource Spring Boot

匆匆过客 提交于 2019-12-11 13:34:57
问题 I'm trying to implement XA transactions in my Spring Boot app across Hazelcast and JPA persisting to PostgreSQL. Putting the Atomikos Spring Boot starter in my pom.xml got it to load the JtaTransactionManager to be used with the @Transactional annotations, but the Hazelcast XA Resource is not being enlisted with the transaction. How do I get Spring Boot to automatically enlist my XA Resources with the JTA UserTransaction as part of the AOP transaction interceptor that's using the

JMS doesnt work in global transaction with cachingconnectionfactory

时间秒杀一切 提交于 2019-12-11 09:25:31
问题 I am using IBM mq(p800-005-160516.2) and Spring JMS template to post messages to MQ.My application is having one database resource and one MQ resource in global transaction.Problem is that it fails if i configure CachingConnnectionFactory public class Xa { public ConnectionFactory connectionFactory() throws Exception { AtomikosConnectionFactoryBean atomikosConnectionFactoryBean = new AtomikosConnectionFactoryBean(); atomikosConnectionFactoryBean.setUniqueResourceName("pavan"); Properties

How to set Atomikos to not write to console logs?

 ̄綄美尐妖づ 提交于 2019-12-10 19:13:53
问题 Atomikos is quite verbose when used. There seems to be lots of INFO messages (mostly irrelevant for me) that the transaction manager writes out to the console. The setting in the transaction.properties that is suppose to control the level of messaging com.atomikos.icatch.console_log_level does not seem to have any effect, since even when set to WARN (or ERROR) the INFO messages are still logged. Also the log4j settings for com.atomikos and atomikos seem to be ignored. Does anyone manage to

Strange Atomikos exception - Error in init(): Log already in use?

天涯浪子 提交于 2019-12-10 12:38:07
问题 We're trying to run the same web application that uses Atomikos as transaction manager on several local envrionments (each of those uses the same versions of spring, atomikos, tomact etc with the same configuration files). Some of them work fine, but in one of them, when we try to to start tomcat we get the following exception: Caused by: java.lang.IllegalStateException: Can't overwrite cause with java.lang.RuntimeException: Log already in use? at java.lang.Throwable.initCause(Throwable.java

Differences between javax.jms.ConnectionFactory and javax.jms.XAConnectionFactory

Deadly 提交于 2019-12-10 11:04:44
问题 I'm entering the world of JTA, due to need of distributed transactions, and I'm uncertain about the differences between javax.jms.ConnectionFactory and javax.jms.XAConnectionFactory or more accurately how can it be that javax.jms.ConnectionFactory performed what I expected only javax.jms.XAConnectionFactory can do for me. The details: I'm using Atomikos essentials as my transaction manager and my app is running on Apache Tomcat 6. I'm running a small POC with a dummy app where I have my JMS

solve error : log already in use with atomikos with multiple instances

北慕城南 提交于 2019-12-10 04:29:46
问题 I am facing an issue only on live server with atomikos, on my local server it works perfectly. the issue i am facng on the server is Error in init(): Log already in use? complete exception stack trace java.lang.RuntimeException: Log already in use? at com.atomikos.icatch.standalone.UserTransactionServiceImp.createDefault(UserTransactionServiceImp.java:205) at com.atomikos.icatch.standalone.UserTransactionServiceImp.init(UserTransactionServiceImp.java:265) at com.atomikos.icatch.config

How to move location of Atomikos's tm.out and *.epoch files?

眉间皱痕 提交于 2019-12-09 16:23:48
问题 I'm running a J2SE application that uses Atomikos which dumps it's numerous log files to the current directory. I'd like to move the location of these files to "/tmp", but I cannot locate a configuration property that I can set from within my Spring XML config file. The Atomikos documentation references a property: com.atomikos.icatch.output_dir Which seems exactly what I need, but how to set from Spring it without a jta.properties file? Here is my transaction manager config: <bean id=