Skip to content

Commit

Permalink
https://github.com/atomikos/transactions-essentials/issues/213
Browse files Browse the repository at this point in the history
Builder for Rest Client of remote-transactions. Backport von Version 6
auf Version 5
  • Loading branch information
martinaubele committed Jul 6, 2024
1 parent f78db88 commit 9cbdeb5
Show file tree
Hide file tree
Showing 24 changed files with 147 additions and 84 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.atomikos</groupId>
<artifactId>atomikos-parent</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
<!-- With maven, a parent pom MUST have "pom" for packaging -->
<packaging>pom</packaging>
<name>Atomikos All POM</name>
Expand Down
26 changes: 13 additions & 13 deletions public/atomikos-transactions-essentials/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.atomikos</groupId>
<artifactId>ate</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<artifactId>atomikos-transactions-essentials</artifactId>
<!-- "bom" project for the open source modules -->
Expand All @@ -13,62 +13,62 @@
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jdbc</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jms</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-hibernate3</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-hibernate4</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-hibernate2</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-eclipselink</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jndi-provider</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-api</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jta</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-osgi</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>atomikos-util</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>

</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion public/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.atomikos</groupId>
<artifactId>atomikos-parent</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<artifactId>ate</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion public/transactions-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.atomikos</groupId>
<artifactId>ate</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<artifactId>transactions-api</artifactId>
<name>Transactions API</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public final class ConfigProperties {
public static final String DEFAULT_MAX_WAIT_TIME_ON_SHUTDOWN = "com.atomikos.icatch.default_max_wait_time_on_shutdown";
public static final String THROW_ON_HEURISTIC = "com.atomikos.icatch.throw_on_heuristic";
public static final String JVM_ID_PROPERTY_NAME = "com.atomikos.icatch.jvm_id";
public static final String REST_CLIENT_BUILDER = "com.atomikos.remoting.rest_client_builder";



/**
Expand Down Expand Up @@ -266,6 +268,11 @@ public String getJvmId() {
return getProperty(JVM_ID_PROPERTY_NAME);

}

public String getRestClientBuilder() {
return getProperty(REST_CLIENT_BUILDER);

}


}
4 changes: 2 additions & 2 deletions public/transactions-eclipselink/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>ate</artifactId>
<groupId>com.atomikos</groupId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<artifactId>transactions-eclipselink</artifactId>
<dependencies>
Expand All @@ -22,7 +22,7 @@
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jta</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
Expand Down
4 changes: 2 additions & 2 deletions public/transactions-hibernate2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<parent>
<groupId>com.atomikos</groupId>
<artifactId>ate</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<artifactId>transactions-hibernate2</artifactId>
<name>Transactions Hibernate2</name>
<dependencies>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jta</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>net.sf.hibernate</groupId>
Expand Down
6 changes: 3 additions & 3 deletions public/transactions-hibernate3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<parent>
<groupId>com.atomikos</groupId>
<artifactId>ate</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<artifactId>transactions-hibernate3</artifactId>
<name>Transactions Hibernate3</name>
<dependencies>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jta</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jdbc</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
Expand Down
6 changes: 3 additions & 3 deletions public/transactions-hibernate4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.atomikos</groupId>
<artifactId>ate</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<properties>
<transform.skip>false</transform.skip>
Expand All @@ -15,13 +15,13 @@
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jta</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jdbc</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions public/transactions-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.atomikos</groupId>
<artifactId>ate</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<artifactId>transactions-jdbc</artifactId>
<name>Transactions JDBC</name>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jta</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions public/transactions-jms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.atomikos</groupId>
<artifactId>ate</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<artifactId>transactions-jms</artifactId>
<name>Transactions JMS</name>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jta</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions public/transactions-jndi-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.atomikos</groupId>
<artifactId>ate</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<artifactId>transactions-jndi-provider</artifactId>
<properties>
Expand All @@ -13,12 +13,12 @@
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jms</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jdbc</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
Expand Down
8 changes: 4 additions & 4 deletions public/transactions-jta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.atomikos</groupId>
<artifactId>ate</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<artifactId>transactions-jta</artifactId>
<name>Transactions JTA</name>
Expand All @@ -15,18 +15,18 @@
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-api</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>atomikos-util</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>jakarta.jms</groupId>
Expand Down
6 changes: 3 additions & 3 deletions public/transactions-osgi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.atomikos</groupId>
<artifactId>ate</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<artifactId>transactions-osgi</artifactId>
<name>Transactions OSGi</name>
Expand Down Expand Up @@ -89,13 +89,13 @@
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jdbc</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jms</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
<optional>true</optional>
</dependency>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions public/transactions-remoting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.atomikos</groupId>
<artifactId>ate</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</parent>
<artifactId>transactions-remoting</artifactId>
<properties>
Expand All @@ -13,13 +13,13 @@
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-jta</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions</artifactId>
<version>5.0.9.20</version>
<version>5.0.9.21</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.atomikos.remoting.twopc;

import static javax.ws.rs.client.ClientBuilder.newClient;

import javax.ws.rs.client.Client;

/**
* Default provider for standard Jaxrs Client without connection pool
*/
public class DefaultRestClientBuilder extends RestClientBuilder {

public Client build() {
Client client = newClient();
client.property("jersey.config.client.suppressHttpComplianceValidation", true);
client.register(ParticipantsProvider.class);
return client;
}
}
Loading

0 comments on commit 9cbdeb5

Please sign in to comment.