fixed wrong path in embedded repository
This commit is contained in:
parent
6d6d815f56
commit
9bb152d3de
5 changed files with 4 additions and 4 deletions
|
|
@ -117,6 +117,7 @@ object Kernel extends Logging {
|
||||||
private[akka] def startCassandra = if (config.getBool("akka.storage.cassandra.service", true)) {
|
private[akka] def startCassandra = if (config.getBool("akka.storage.cassandra.service", true)) {
|
||||||
System.setProperty("cassandra", "")
|
System.setProperty("cassandra", "")
|
||||||
System.setProperty("storage-config", akka.Boot.CONFIG + "/")
|
System.setProperty("storage-config", akka.Boot.CONFIG + "/")
|
||||||
|
println("------------------------- " + akka.Boot.CONFIG + "/")
|
||||||
CassandraStorage.start
|
CassandraStorage.start
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,8 +59,7 @@ class PersistentActor extends Actor {
|
||||||
object PersistenceManager {
|
object PersistenceManager {
|
||||||
@volatile var isRunning = false
|
@volatile var isRunning = false
|
||||||
def init = if (!isRunning) {
|
def init = if (!isRunning) {
|
||||||
System.setProperty("storage-config", "config")
|
Kernel.startCassandra
|
||||||
Kernel.boot
|
|
||||||
isRunning = true
|
isRunning = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -135,4 +134,4 @@ class PersistentActorSpec extends TestCase {
|
||||||
} catch {case e: RuntimeException => {}}
|
} catch {case e: RuntimeException => {}}
|
||||||
assertEquals("init", (stateful !! GetRefState).get) // check that state is == init state
|
assertEquals("init", (stateful !! GetRefState).get) // check that state is == init state
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
sctags.sh -E -R . -f TAGS
|
sctags.bat -E -R . -f TAGS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue