Making it possile to turn cluster on/off in config

This commit is contained in:
Viktor Klang 2010-03-07 23:23:09 +01:00
parent 0db29005ec
commit cada63a03f
2 changed files with 5 additions and 2 deletions

View file

@ -25,7 +25,10 @@ trait BootableRemoteActorService extends Bootable with Logging {
abstract override def onLoad = {
if(config.getBool("akka.remote.server.service", true)){
super.onLoad //Initialize BootableActorLoaderService before remote service
Cluster.start(self.applicationLoader)
if(config.getBool("akka.remote.cluster.service", true))
Cluster.start(self.applicationLoader)
log.info("Initializing Remote Actors Service...")
startRemoteService
log.info("Remote Actors Service initialized!")

View file

@ -49,7 +49,7 @@
zlib-compression-level = 6 # Options: 0-9 (1 being fastest and 9 being the most compressed), default is 6
<cluster>
service = on # FIXME add 'service = on' for <cluster>
service = on
name = "default" # The name of the cluster
actor = "se.scalablesolutions.akka.remote.JGroupsClusterActor" # FQN of an implementation of ClusterActor
serializer = "se.scalablesolutions.akka.serialization.Serializer$Java" # FQN of the serializer class