Skip to content

Commit 930c838

Browse files
committed
Remove Narayana support
The Spring Boot integration is now handled by the Narayana project itself at https://github.com/snowdrop/narayana-spring-boot This commit removes our support. Closes gh-12026
1 parent 598f630 commit 930c838

File tree

39 files changed

+1
-2509
lines changed

39 files changed

+1
-2509
lines changed

spring-boot-project/spring-boot-autoconfigure/pom.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -668,21 +668,6 @@
668668
<artifactId>jooq</artifactId>
669669
<optional>true</optional>
670670
</dependency>
671-
<dependency>
672-
<groupId>org.jboss.narayana.jta</groupId>
673-
<artifactId>jms</artifactId>
674-
<optional>true</optional>
675-
</dependency>
676-
<dependency>
677-
<groupId>org.jboss.narayana.jta</groupId>
678-
<artifactId>jta</artifactId>
679-
<optional>true</optional>
680-
</dependency>
681-
<dependency>
682-
<groupId>org.jboss.narayana.jts</groupId>
683-
<artifactId>narayana-jts-integration</artifactId>
684-
<optional>true</optional>
685-
</dependency>
686671
<dependency>
687672
<groupId>org.quartz-scheduler</groupId>
688673
<artifactId>quartz</artifactId>

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/JtaAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
ActiveMQAutoConfiguration.class, ArtemisAutoConfiguration.class,
4343
HibernateJpaAutoConfiguration.class })
4444
@Import({ JndiJtaConfiguration.class, BitronixJtaConfiguration.class,
45-
AtomikosJtaConfiguration.class, NarayanaJtaConfiguration.class })
45+
AtomikosJtaConfiguration.class })
4646
@EnableConfigurationProperties(JtaProperties.class)
4747
public class JtaAutoConfiguration {
4848

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/NarayanaJtaConfiguration.java

Lines changed: 0 additions & 172 deletions
This file was deleted.

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/transaction/jta/JtaAutoConfigurationTests.java

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import javax.transaction.UserTransaction;
3232
import javax.transaction.xa.XAResource;
3333

34-
import com.arjuna.ats.jbossatx.jta.RecoveryManagerService;
3534
import com.atomikos.icatch.config.UserTransactionService;
3635
import com.atomikos.icatch.jta.UserTransactionManager;
3736
import com.atomikos.jms.AtomikosConnectionFactoryBean;
@@ -52,9 +51,6 @@
5251
import org.springframework.boot.jta.bitronix.BitronixDependentBeanFactoryPostProcessor;
5352
import org.springframework.boot.jta.bitronix.PoolingConnectionFactoryBean;
5453
import org.springframework.boot.jta.bitronix.PoolingDataSourceBean;
55-
import org.springframework.boot.jta.narayana.NarayanaBeanFactoryPostProcessor;
56-
import org.springframework.boot.jta.narayana.NarayanaConfigurationBean;
57-
import org.springframework.boot.jta.narayana.NarayanaRecoveryManagerBean;
5854
import org.springframework.boot.test.util.TestPropertyValues;
5955
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
6056
import org.springframework.context.annotation.Bean;
@@ -140,20 +136,6 @@ public void bitronixSanityCheck() {
140136
this.context.getBean(JtaTransactionManager.class);
141137
}
142138

143-
@Test
144-
public void narayanaSanityCheck() {
145-
this.context = new AnnotationConfigApplicationContext(JtaProperties.class,
146-
NarayanaJtaConfiguration.class);
147-
this.context.getBean(NarayanaConfigurationBean.class);
148-
this.context.getBean(UserTransaction.class);
149-
this.context.getBean(TransactionManager.class);
150-
this.context.getBean(XADataSourceWrapper.class);
151-
this.context.getBean(XAConnectionFactoryWrapper.class);
152-
this.context.getBean(NarayanaBeanFactoryPostProcessor.class);
153-
this.context.getBean(JtaTransactionManager.class);
154-
this.context.getBean(RecoveryManagerService.class);
155-
}
156-
157139
@Test
158140
public void defaultBitronixServerId() throws UnknownHostException {
159141
this.context = new AnnotationConfigApplicationContext(
@@ -285,16 +267,6 @@ public void bitronixCustomizeJtaTransactionManagerUsingProperties() {
285267
assertThat(transactionManager.isRollbackOnCommitFailure()).isTrue();
286268
}
287269

288-
@Test
289-
public void narayanaRecoveryManagerBeanCanBeCustomized() {
290-
this.context = new AnnotationConfigApplicationContext();
291-
this.context.register(CustomNarayanaRecoveryManagerConfiguration.class,
292-
JtaProperties.class, NarayanaJtaConfiguration.class);
293-
this.context.refresh();
294-
assertThat(this.context.getBean(NarayanaRecoveryManagerBean.class))
295-
.isInstanceOf(CustomNarayanaRecoveryManagerBean.class);
296-
}
297-
298270
@Configuration
299271
@EnableConfigurationProperties(JtaProperties.class)
300272
public static class JtaPropertiesConfiguration {
@@ -337,25 +309,4 @@ public DataSource pooledDataSource(XADataSourceWrapper wrapper) throws Exception
337309

338310
}
339311

340-
@Configuration
341-
public static class CustomNarayanaRecoveryManagerConfiguration {
342-
343-
@Bean
344-
public NarayanaRecoveryManagerBean customRecoveryManagerBean(
345-
RecoveryManagerService recoveryManagerService) {
346-
return new CustomNarayanaRecoveryManagerBean(recoveryManagerService);
347-
}
348-
349-
}
350-
351-
static final class CustomNarayanaRecoveryManagerBean
352-
extends NarayanaRecoveryManagerBean {
353-
354-
private CustomNarayanaRecoveryManagerBean(
355-
RecoveryManagerService recoveryManagerService) {
356-
super(recoveryManagerService);
357-
}
358-
359-
}
360-
361312
}

spring-boot-project/spring-boot-dependencies/pom.xml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@
129129
<mongodb.version>3.8.0</mongodb.version>
130130
<mssql-jdbc.version>6.4.0.jre8</mssql-jdbc.version>
131131
<mysql.version>8.0.12</mysql.version>
132-
<narayana.version>5.8.2.Final</narayana.version>
133132
<nekohtml.version>1.9.22</nekohtml.version>
134133
<neo4j-ogm.version>3.1.0</neo4j-ogm.version>
135134
<netty.version>4.1.28.Final</netty.version>
@@ -450,11 +449,6 @@
450449
<artifactId>spring-boot-starter-jta-bitronix</artifactId>
451450
<version>${revision}</version>
452451
</dependency>
453-
<dependency>
454-
<groupId>org.springframework.boot</groupId>
455-
<artifactId>spring-boot-starter-jta-narayana</artifactId>
456-
<version>${revision}</version>
457-
</dependency>
458452
<dependency>
459453
<groupId>org.springframework.boot</groupId>
460454
<artifactId>spring-boot-starter-log4j2</artifactId>
@@ -2203,26 +2197,6 @@
22032197
<artifactId>jboss-logging</artifactId>
22042198
<version>${jboss-logging.version}</version>
22052199
</dependency>
2206-
<dependency>
2207-
<groupId>org.jboss.narayana.jta</groupId>
2208-
<artifactId>jdbc</artifactId>
2209-
<version>${narayana.version}</version>
2210-
</dependency>
2211-
<dependency>
2212-
<groupId>org.jboss.narayana.jta</groupId>
2213-
<artifactId>jms</artifactId>
2214-
<version>${narayana.version}</version>
2215-
</dependency>
2216-
<dependency>
2217-
<groupId>org.jboss.narayana.jta</groupId>
2218-
<artifactId>jta</artifactId>
2219-
<version>${narayana.version}</version>
2220-
</dependency>
2221-
<dependency>
2222-
<groupId>org.jboss.narayana.jts</groupId>
2223-
<artifactId>narayana-jts-integration</artifactId>
2224-
<version>${narayana.version}</version>
2225-
</dependency>
22262200
<dependency>
22272201
<groupId>org.jdom</groupId>
22282202
<artifactId>jdom2</artifactId>

spring-boot-project/spring-boot-docs/pom.xml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -532,26 +532,6 @@
532532
<artifactId>jboss-logging</artifactId>
533533
<optional>true</optional>
534534
</dependency>
535-
<dependency>
536-
<groupId>org.jboss.narayana.jta</groupId>
537-
<artifactId>jdbc</artifactId>
538-
<optional>true</optional>
539-
</dependency>
540-
<dependency>
541-
<groupId>org.jboss.narayana.jta</groupId>
542-
<artifactId>jms</artifactId>
543-
<optional>true</optional>
544-
</dependency>
545-
<dependency>
546-
<groupId>org.jboss.narayana.jta</groupId>
547-
<artifactId>jta</artifactId>
548-
<optional>true</optional>
549-
</dependency>
550-
<dependency>
551-
<groupId>org.jboss.narayana.jts</groupId>
552-
<artifactId>narayana-jts-integration</artifactId>
553-
<optional>true</optional>
554-
</dependency>
555535
<dependency>
556536
<groupId>org.jooq</groupId>
557537
<artifactId>jooq</artifactId>

spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -917,21 +917,6 @@ content into your application. Rather, pick only the properties that you need.
917917
spring.jta.bitronix.properties.skip-corrupted-logs=false # Skip corrupted transactions log entries.
918918
spring.jta.bitronix.properties.warn-about-zero-resource-transaction=true # Whether to log a warning for transactions executed without a single enlisted resource.
919919
920-
# NARAYANA ({sc-spring-boot}/jta/narayana/NarayanaProperties.{sc-ext}[NarayanaProperties])
921-
spring.jta.narayana.default-timeout=60s # Transaction timeout. If a duration suffix is not specified, seconds will be used.
922-
spring.jta.narayana.expiry-scanners=com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner # Comma-separated list of expiry scanners.
923-
spring.jta.narayana.log-dir= # Transaction object store directory.
924-
spring.jta.narayana.one-phase-commit=true # Whether to enable one phase commit optimization.
925-
spring.jta.narayana.periodic-recovery-period=120s # Interval in which periodic recovery scans are performed. If a duration suffix is not specified, seconds will be used.
926-
spring.jta.narayana.recovery-backoff-period=10s # Back off period between first and second phases of the recovery scan. If a duration suffix is not specified, seconds will be used.
927-
spring.jta.narayana.recovery-db-pass= # Database password to be used by the recovery manager.
928-
spring.jta.narayana.recovery-db-user= # Database username to be used by the recovery manager.
929-
spring.jta.narayana.recovery-jms-pass= # JMS password to be used by the recovery manager.
930-
spring.jta.narayana.recovery-jms-user= # JMS username to be used by the recovery manager.
931-
spring.jta.narayana.recovery-modules= # Comma-separated list of recovery modules.
932-
spring.jta.narayana.transaction-manager-id=1 # Unique transaction manager id.
933-
spring.jta.narayana.xa-resource-orphan-filters= # Comma-separated list of orphan filters.
934-
935920
# EMBEDDED MONGODB ({sc-spring-boot-autoconfigure}/mongo/embedded/EmbeddedMongoProperties.{sc-ext}[EmbeddedMongoProperties])
936921
spring.mongodb.embedded.features=sync_delay # Comma-separated list of features to enable.
937922
spring.mongodb.embedded.storage.database-dir= # Directory used for data storage.

0 commit comments

Comments
 (0)