115 lines
4.1 KiB
Text
115 lines
4.1 KiB
Text
####################
|
|
# Akka Config File #
|
|
####################
|
|
|
|
# This file has all the default settings, so all these could be removed with no visible effect.
|
|
# Modify as needed.
|
|
|
|
log {
|
|
filename = "./logs/akka.log"
|
|
roll = "daily" # Options: never, hourly, daily, sunday/monday/...
|
|
level = "debug" # Options: fatal, critical, error, warning, info, debug, trace
|
|
console = on
|
|
# syslog_host = ""
|
|
# syslog_server_name = ""
|
|
|
|
akka {
|
|
node = "se.scalablesolutions.akka"
|
|
level = "info"
|
|
}
|
|
}
|
|
|
|
akka {
|
|
version = "0.10"
|
|
|
|
# FQN (Fully Qualified Name) to the class doing initial active object/actor
|
|
# supervisor bootstrap, should be defined in default constructor
|
|
boot = ["sample.camel.Boot",
|
|
"sample.rest.java.Boot",
|
|
"sample.rest.scala.Boot",
|
|
"sample.security.Boot"]
|
|
|
|
actor {
|
|
timeout = 5000 # default timeout for future based invocations
|
|
serialize-messages = off # does a deep clone of (non-primitive) messages to ensure immutability
|
|
throughput = 5 # default throughput for ExecutorBasedEventDrivenDispatcher
|
|
}
|
|
|
|
stm {
|
|
fair = on # should global transactions be fair or non-fair (non fair yield better performance)
|
|
jta-aware = off # 'on' means that if there JTA Transaction Manager available then the STM will
|
|
# begin (or join), commit or rollback the JTA transaction. Default is 'off'.
|
|
timeout = 5 # default timeout for blocking transactions and transaction set (in unit defined by
|
|
# the time-unit property)
|
|
# FIXME: use 'time-unit' for all timeouts
|
|
time-unit = "seconds" # default timeout time unit
|
|
}
|
|
|
|
jta {
|
|
provider = "from-jndi" # Options: "from-jndi" (means that Akka will try to detect a TransactionManager in the JNDI)
|
|
# "atomikos" (means that Akka will use the Atomikos based JTA impl in 'akka-jta',
|
|
# e.g. you need the akka-jta JARs on classpath).
|
|
timeout = 60000
|
|
}
|
|
|
|
rest {
|
|
service = on
|
|
hostname = "localhost"
|
|
port = 9998
|
|
filters = ["se.scalablesolutions.akka.security.AkkaSecurityFilterFactory"] # List with all jersey filters to use
|
|
resource_packages = ["sample.rest.scala",
|
|
"sample.rest.java",
|
|
"sample.security"] # List with all resource packages for your Jersey services
|
|
authenticator = "sample.security.BasicAuthenticationService" # The authentication service to use. Need to be overridden (uses sample now)
|
|
#maxInactiveActivity = 60000 #Atmosphere CometSupport maxInactiveActivity
|
|
#IF you are using a KerberosAuthenticationActor
|
|
# kerberos {
|
|
# servicePrincipal = "HTTP/localhost@EXAMPLE.COM"
|
|
# keyTabLocation = "URL to keytab"
|
|
# kerberosDebug = "true"
|
|
# realm = "EXAMPLE.COM"
|
|
# }
|
|
}
|
|
|
|
remote {
|
|
compression-scheme = "zlib" # Options: "zlib" (lzf to come), leave out for no compression
|
|
zlib-compression-level = 6 # Options: 0-9 (1 being fastest and 9 being the most compressed), default is 6
|
|
|
|
cluster {
|
|
service = on
|
|
name = "default" # The name of the cluster
|
|
serializer = "se.scalablesolutions.akka.serialization.Serializer$Java$" # FQN of the serializer class
|
|
}
|
|
|
|
server {
|
|
service = on
|
|
hostname = "localhost"
|
|
port = 9999
|
|
connection-timeout = 1000 # in millis (1 sec default)
|
|
}
|
|
|
|
client {
|
|
reconnect-delay = 5000 # in millis (5 sec default)
|
|
read-timeout = 10000 # in millis (10 sec default)
|
|
}
|
|
}
|
|
|
|
storage {
|
|
cassandra {
|
|
hostname = "127.0.0.1" # IP address or hostname of one of the Cassandra cluster's seeds
|
|
port = 9160
|
|
consistency-level = "QUORUM" # Options: ZERO, ONE, QUORUM, DCQUORUM, DCQUORUMSYNC, ALL, ANY
|
|
}
|
|
|
|
mongodb {
|
|
hostname = "127.0.0.1" # IP address or hostname of the MongoDB DB instance
|
|
port = 27017
|
|
dbname = "mydb"
|
|
}
|
|
|
|
redis {
|
|
hostname = "127.0.0.1" # IP address or hostname of the Redis instance
|
|
port = 6379
|
|
}
|
|
}
|
|
}
|