fixed bug with init of tx datastructs + changed actor id management

This commit is contained in:
Jonas Bonér 2010-02-26 17:42:44 +01:00
parent 924661368b
commit b4a46016eb
11 changed files with 33 additions and 20 deletions

View file

@ -53,7 +53,7 @@ class SimpleService extends Transactor {
case object Tick
private val KEY = "COUNTER"
private var hasStartedTicking = false
private val storage = TransactionalState.newMap[String, Integer]
private lazy val storage = TransactionalState.newMap[String, Integer]
@GET
@Produces(Array("text/html"))
@ -105,7 +105,7 @@ class PersistentSimpleService extends Transactor {
case object Tick
private val KEY = "COUNTER"
private var hasStartedTicking = false
private val storage = CassandraStorage.newMap
private lazy val storage = CassandraStorage.newMap
@GET
@Produces(Array("text/html"))