-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathapplication.conf
More file actions
36 lines (28 loc) · 1.27 KB
/
application.conf
File metadata and controls
36 lines (28 loc) · 1.27 KB
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
play.modules.enabled += com.lightbend.lagom.samples.mixedpersistence.hello.impl.HelloModule
# Disable the Lagom JDBC persistence module.
# This requires some Guice bindings to be explicitly set: see HelloModule.
play.modules.disabled += com.lightbend.lagom.javadsl.persistence.jdbc.JdbcPersistenceModule
# Cassandra write-side configuration.
hello.cassandra.keyspace = hello
cassandra-journal.keyspace = ${hello.cassandra.keyspace}
cassandra-snapshot-store.keyspace = ${hello.cassandra.keyspace}
# Cassandra read-sides are unused in this example, but the offsetstore is still automatically created by default.
# It is possible to mix both Cassandra and JDBC/JPA read-side processors in the same service this way.
lagom.persistence.read-side.cassandra.keyspace = ${hello.cassandra.keyspace}
# JPA read-side configuration.
db.default {
driver = "org.h2.Driver"
url = "jdbc:h2:mem:hello-service"
}
jdbc-defaults.slick.profile = "slick.jdbc.H2Profile$"
# Finally, ensure that Cassandra is used for the journal and snapshot-store
# Lagom's Cassandra and JDBC persistence modules both define these properties,
# so the order they are applied is non-deterministic.
akka.persistence {
journal {
plugin = cassandra-journal
}
snapshot-store {
plugin = cassandra-snapshot-store
}
}