Skip to content

Commit 518438a

Browse files
committed
Bump versions
1 parent 54c7125 commit 518438a

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

build.sbt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ version := "1.0"
66

77
scalaVersion := "2.13.16"
88

9-
val pekkoVersion = "1.2.0"
9+
val pekkoVersion = "1.2.1"
1010
val pekkoHTTPVersion = "1.2.0"
11-
val pekkoConnectorVersion = "1.1.0"
11+
val pekkoConnectorVersion = "1.2.0"
1212
val pekkoConnectorKafkaVersion = "1.1.0"
1313

1414
val kafkaVersion = "3.9.0"
@@ -23,7 +23,7 @@ val awsClientVersion = "2.25.32"
2323
val gatlingVersion = "3.13.5"
2424
val circeVersion = "0.14.14"
2525

26-
val langchain4jVersion = "1.4.0"
26+
val langchain4jVersion = "1.7.1"
2727

2828
libraryDependencies ++= Seq(
2929
"org.scala-lang.modules" %% "scala-parallel-collections" % "1.2.0",
@@ -92,11 +92,11 @@ libraryDependencies ++= Seq(
9292
"com.influxdb" % "flux-dsl" % influxdbVersion,
9393
"org.influxdb" % "influxdb-java" % "2.24",
9494

95-
"ca.uhn.hapi" % "hapi-base" % "2.6.0",
96-
"ca.uhn.hapi" % "hapi-structures-v23" % "2.6.0",
97-
"ca.uhn.hapi" % "hapi-structures-v24" % "2.6.0",
98-
"ca.uhn.hapi" % "hapi-structures-v25" % "2.6.0",
99-
"ca.uhn.hapi" % "hapi-structures-v281" % "2.6.0",
95+
"ca.uhn.hapi" % "hapi-base" % "2.3",
96+
"ca.uhn.hapi" % "hapi-structures-v23" % "2.3",
97+
"ca.uhn.hapi" % "hapi-structures-v24" % "2.3",
98+
"ca.uhn.hapi" % "hapi-structures-v25" % "2.3",
99+
"ca.uhn.hapi" % "hapi-structures-v281" % "2.3",
100100

101101
"org.apache.opennlp" % "opennlp-tools" % "2.5.5",
102102

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.11.3
1+
sbt.version=1.11.7

src/main/scala/alpakka/jms/ProcessingApp.scala

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package alpakka.jms
33
import com.typesafe.config.Config
44
import org.apache.activemq.ActiveMQConnectionFactory
55
import org.apache.pekko.actor.ActorSystem
6-
import org.apache.pekko.stream._
7-
import org.apache.pekko.stream.connectors.jms._
6+
import org.apache.pekko.stream.*
7+
import org.apache.pekko.stream.connectors.jms.*
88
import org.apache.pekko.stream.connectors.jms.scaladsl.{JmsConsumer, JmsConsumerControl, JmsProducer}
99
import org.apache.pekko.stream.scaladsl.{Keep, Sink, Source}
1010
import org.apache.pekko.{Done, NotUsed}
@@ -13,21 +13,21 @@ import org.slf4j.{Logger, LoggerFactory}
1313
import java.util.concurrent.ThreadLocalRandom
1414
import javax.jms.{ConnectionFactory, Message, TextMessage}
1515
import scala.collection.immutable
16-
import scala.concurrent.duration._
16+
import scala.concurrent.duration.*
1717
import scala.concurrent.{Await, Future}
1818
import scala.util.control.NonFatal
1919
import scala.util.{Failure, Success}
2020

2121
/**
2222
* An Alpakka JMS client which consumes text messages from either:
2323
* - Preferred: Artemis JMS Broker on docker image, started from /docker/docker-compose.yml
24-
* - Preferred: Embedded Artemis JMS Broker [[JMSServerArtemis]], started from IDE
24+
* - Experimental: Embedded Artemis JMS Broker [[alpakka.env.JMSServerArtemis]], started from IDE
2525
* - Experimental: Embedded ActiveMQ JMS Broker [[alpakka.env.jms.JMSServerActiveMQ]], started from IDE
2626
*
2727
* Generate text messages with [[JMSTextMessageProducerClient]]
2828
*
2929
* Features:
30-
* - non deliverable messages are acknowledged and written to an error queue (so that processing resumes)
30+
* - non deliverable messages are acknowledged and written to [[ProcessingApp.errorQueue]] (so that processing resumes)
3131
* - Failures in this client may be simulated by throwing random java.lang.RuntimeException: BOOM
3232
* see [[ProcessingApp.simulateFaultyDeliveryToExternalSystem]]
3333
* - for an example of ConnectionRetrySettings/SendRetrySettings see [[JMSTextMessageProducerClient]]
@@ -68,8 +68,8 @@ object ProcessingApp {
6868
// Seems to work together with the new connection and send retry settings on the connector
6969
val connectionFactory: ConnectionFactory = new ActiveMQConnectionFactory("artemis", "artemis", "failover:tcp://127.0.0.1:21616")
7070

71-
val consumerConfig: Config = system.settings.config.getConfig(JmsConsumerSettings.configPath)
72-
val jmsConsumerSource: Source[AckEnvelope, JmsConsumerControl] = JmsConsumer.ackSource(
71+
private val consumerConfig: Config = system.settings.config.getConfig(JmsConsumerSettings.configPath)
72+
private val jmsConsumerSource: Source[AckEnvelope, JmsConsumerControl] = JmsConsumer.ackSource(
7373
JmsConsumerSettings(consumerConfig, connectionFactory)
7474
.withQueue("test-queue")
7575
.withSessionCount(5)
@@ -81,9 +81,9 @@ object ProcessingApp {
8181
.withAcknowledgeMode(AcknowledgeMode.ClientAcknowledge) //Default
8282
)
8383

84-
val jmsErrorQueueSettings: JmsProducerSettings = JmsProducerSettings.create(system, connectionFactory).withQueue("test-queue-error")
85-
val errorQueueSink: Sink[JmsTextMessage, Future[Done]] = JmsProducer.sink(jmsErrorQueueSettings)
86-
val errorQueue = Source
84+
private val jmsErrorQueueSettings: JmsProducerSettings = JmsProducerSettings.create(system, connectionFactory).withQueue("test-queue-error")
85+
private val errorQueueSink: Sink[JmsTextMessage, Future[Done]] = JmsProducer.sink(jmsErrorQueueSettings)
86+
private val errorQueue = Source
8787
.queue[JmsTextMessage](100, OverflowStrategy.backpressure, 10)
8888
.toMat(errorQueueSink)(Keep.left)
8989
.run()
@@ -133,7 +133,7 @@ object ProcessingApp {
133133
}
134134
}
135135

136-
private def pendingMessageWatcher(jmsConsumerControl: JmsConsumerControl) = {
136+
private def pendingMessageWatcher(jmsConsumerControl: JmsConsumerControl): Unit = {
137137
val queue = jmsConsumerControl.connectorState.toMat(Sink.queue())(Keep.right).run()
138138

139139
val browseSource: Source[Message, NotUsed] = JmsConsumer.browse(
@@ -156,7 +156,7 @@ object ProcessingApp {
156156
}
157157

158158

159-
def logWhen(done: Future[Done]) = {
159+
def logWhen(done: Future[Done]): Unit = {
160160
done.onComplete {
161161
case Success(_) =>
162162
logger.info("Message successfully written to error queue")

0 commit comments

Comments
 (0)