-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhello-world.conf
More file actions
44 lines (36 loc) · 838 Bytes
/
hello-world.conf
File metadata and controls
44 lines (36 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
smqd {
node_name = "hello-world"
logo = "HelloWorld"
services = [ hello-world-api, example-service-scala, example-service-java ]
hello-world-api {
entry.class = com.thing2x.smqd.net.http.HttpService
config {
local {
enabled = true
address = 0.0.0.0
port = 8080
}
routes = [
{
name = hello
prefix = ""
class = sample.helloworld.scala.Controller
}
]
}
}
// Java Version
example-service-java {
entry.class = sample.helloworld.java.HelloWorldService
config {
greeting = "Java service receives a message: "
}
}
// Scala Version
example-service-scala {
entry.class = sample.helloworld.scala.HelloWorldService
config {
greeting = "Scala service receives a message: "
}
}
}