Skip to content
This repository was archived by the owner on Oct 26, 2023. It is now read-only.

Commit a2a995a

Browse files
ignasi35octonato
authored andcommitted
Fix README (#22)
1 parent f2a7f58 commit a2a995a

File tree

3 files changed

+9
-28
lines changed

3 files changed

+9
-28
lines changed

lagom-mq-example-scala/README.md

+1-21
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ and migrating to another node in the cluster in the event of failure.
2626
1. [Prerequisites](#prerequisites)
2727
2. [Set up IBM MQ](#set-up-ibm-mq)
2828
3. [Download and set up the Lagom service](#download-and-set-up-the-lagom-service)
29-
4. [Download and install the IBM MQ driver](#download-and-install-the-ibm-mq-driver)
3029
5. [Start the Lagom service](#start-the-lagom-service)
3130
6. [Test the Lagom service](#test-the-lagom-service)
3231
7. [Stop the Lagom service](#stop-the-lagom-service-and-docker)
@@ -85,25 +84,6 @@ image. If you do wish to use different MQ settings you can change them in the
8584
Lagom service's `application.conf` configuration file. The settings are documented
8685
in the comments in that file.
8786
88-
## Download and install the MQ client driver
89-
90-
To build and run the Lagom service, you will need to make the MQ client library available
91-
in your build.
92-
93-
1. Go to [IBM's download page for MQ 9.0.0.1](http://ibm.biz/mq9001redistclients).
94-
2. Click on the link _9.0.0.1-IBM-MQC-Redist-Java_.
95-
3. You may be asked to log in to IBM. If needed, you can create a free account.
96-
4. Agree to the license agreement.
97-
5. Click on the link _9.0.0.1-IBM-MQC-Redist-Java.zip (20.8 MB)_.
98-
6. Go to the root directory of the `lagom-mq-example-scala` project.
99-
6. Extract the MQ client JAR files and copy them into the `mq-client/lib` directory
100-
```
101-
$ jar xf 9.0.0.1-IBM-MQC-Redist-Java.zip java/lib/{com.ibm.mq.allclient.jar,jms.jar}
102-
$ mkdir -p mq-client/lib
103-
$ cp java/lib/* mq-client/lib
104-
$ rm -ri java/lib
105-
```
106-
10787
## Start the Lagom service
10888
10989
From the `lagom-mq-example-scala` directory run:
@@ -148,4 +128,4 @@ explaining what it's doing. For example:
148128
149129
To stop the Lagom service, press `Enter` in the terminal.
150130
151-
To stop the Docker MQ container, type `Control-C` in its terminal.
131+
To stop the Docker MQ container, type `Control-C` in its terminal.

lagom-mq-example-scala/build.sbt

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version in ThisBuild := "1.0-SNAPSHOT"
44
// the Scala version that will be used for cross-compiled libraries
55
scalaVersion in ThisBuild := "2.11.8"
66

7+
val ibmWebsphereMQ = "com.ibm.mq" % "com.ibm.mq.allclient" % "9.0.4.0"
78
val alpakka = "com.lightbend.akka" %% "akka-stream-alpakka-jms" % "0.12"
89
val macwire = "com.softwaremill.macwire" %% "macros" % "2.2.5" % "provided"
910
val scalaTest = "org.scalatest" %% "scalatest" % "3.0.1" % Test
@@ -25,12 +26,13 @@ lazy val `hello-impl` = (project in file("hello-impl"))
2526
lagomScaladslPersistenceCassandra,
2627
lagomScaladslKafkaBroker,
2728
lagomScaladslTestKit,
28-
alpakka,
2929
macwire,
30+
31+
ibmWebsphereMQ,
32+
alpakka,
33+
3034
scalaTest
3135
)
3236
)
3337
.settings(lagomForkedTestSettings: _*)
34-
.dependsOn(`hello-api`, `mq-client`)
35-
36-
lazy val `mq-client` = project
38+
.dependsOn(`hello-api`)

lagom-mq-example-scala/hello-api/src/main/scala/com/example/hello/api/HelloService.scala

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ trait HelloService extends Service {
2424
def hello(id: String): ServiceCall[NotUsed, String]
2525

2626
/**
27-
* Example: curl -H "Content-Type: application/json" -X POST -d '{"message":
28-
* "Hi"}' http://localhost:9000/api/hello/Alice
27+
* Example:
28+
* curl -H "Content-Type: application/json" -X POST -d '{"message": "Hi"}' http://localhost:9000/api/hello/Alice
2929
*/
3030
def useGreeting(id: String): ServiceCall[GreetingMessage, Done]
3131

32-
3332
/**
3433
* This gets published to Kafka.
3534
*/

0 commit comments

Comments
 (0)