Skip to content

Commit

Permalink
FISH-8292 Upgrade Components
Browse files Browse the repository at this point in the history
  • Loading branch information
jGauravGupta committed Mar 12, 2024
1 parent 6504092 commit e095426
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion AmazonSQS/AmazonSQSExample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>sqs</artifactId>
<version>2.18.17</version>
<version>2.25.6</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Expand Down
2 changes: 1 addition & 1 deletion AmazonSQS/AmazonSQSJCAAPI/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>2.18.17</version>
<version>2.25.6</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
import javax.json.JsonObject;
import javax.json.JsonReader;
import javax.json.JsonValue;
import javax.resource.spi.BootstrapContext;
import javax.resource.spi.endpoint.MessageEndpointFactory;
import jakjavaxarta.resource.spi.work.WorkException;
import java.io.IOException;
import java.io.StringReader;
import java.lang.reflect.Method;
Expand All @@ -61,7 +58,6 @@
import javax.resource.spi.BootstrapContext;
import javax.resource.spi.endpoint.MessageEndpointFactory;
import javax.resource.spi.work.WorkException;
import software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider;
import software.amazon.awssdk.core.ResponseInputStream;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.s3.S3Client;
Expand Down Expand Up @@ -114,8 +110,10 @@ public void run() {
Class<?> mdbClass = factory.getEndpointClass();
for (Message message : messages) {
for (Method m : mdbClass.getMethods()) {
if (isOnSQSMessageMethod(m) && shouldFetchS3Message(message)) {
message = fetchS3MessageContent(message);
if (isOnSQSMessageMethod(m)) {
if (shouldFetchS3Message(message)) {
message = fetchS3MessageContent(message);
}
scheduleSQSWork(m, message);
}
}
Expand Down
4 changes: 2 additions & 2 deletions AmazonSQS/AmazonSQSRAR/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<description>RAR for the Amazon SQS JCA Adapter</description>
<url>http://www.payara.fish</url>
<properties>
<awssdk.version>2.23.3</awssdk.version>
<awssdk.version>2.25.6</awssdk.version>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -49,7 +49,7 @@
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>amazon-sqs-java-extended-client-lib</artifactId>
<version>2.0.4</version>
<version>2.1.0</version>
</dependency>
</dependencies>
</project>

0 comments on commit e095426

Please sign in to comment.