Alpakka sample
Receive JMS messages
These examples show small usages of Alpakka JMS.
Browse the sources at Github.
To try out this project clone the Alpakka Samples repository and find it in the alpakka-samples-jms
directory.
Dependencies
- Dependencies (sbt notation)
-
source
val AkkaVersion = "2.9.0" val AkkaHttpVersion = "10.6.0" val AlpakkaVersion = "7.0.2" val AkkaDiagnosticsVersion = "2.1.0" "com.lightbend.akka" %% "akka-stream-alpakka-jms" % AlpakkaVersion, "com.typesafe.akka" %% "akka-http" % AkkaHttpVersion, "com.typesafe.akka" %% "akka-stream" % AkkaVersion, "com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion, "com.typesafe.akka" %% "akka-actor" % AkkaVersion, "com.lightbend.akka" %% "akka-diagnostics" % AkkaDiagnosticsVersion, // https://github.com/javaee/javax.jms "javax.jms" % "jms" % "1.1", // CDDL Version 1.1 // Logging "com.typesafe.akka" %% "akka-slf4j" % AkkaVersion, "ch.qos.logback" % "logback-classic" % "1.2.3",
Running the example code
These examples are contained in a stand-alone runnable main classes, they can be run from sbt
like this:
- Scala
-
sbt run > run
All Alpakka samples
Show Alpakka samples listing.