Skip to content
Browse files

Added information about configuration

  • Loading branch information...
1 parent d9bbf75 commit 19e39a1dbe0f523695477e6e9554e6c1d601a2d0 @gaverhae committed Jul 17, 2012
Showing with 46 additions and 0 deletions.
  1. +31 −0
  2. +2 −0 calculation/resources/application.conf
  3. +5 −0 creation/resources/application.conf
  4. +8 −0 lookup/resources/application.conf
@@ -328,3 +328,34 @@ actor system and the address of the remote one. This is done through the
``resources/application.conf`` file in each program:
+# Distributed setup
+From the point of view of the three programs, they already are distributed.
+There are only two complications when the programs run on separate machines.
+The first one is that the local address has been hardcoded in the paths, but
+that is taken care of by the previous paragraph.
+The second complication is that the common-actors package needs to be exactly
+the same between all the applications that use it (and that would be the three
+of them in a correctly factored version). This is, however, beyond the scope of
+this tutorial (you simply have to distribute the same JAR archive, which should
+be taken care of by whatever distribution mechanism you're using).
+# Configuration
+The configuration for Okku is nearly identical to that of Akka: if you have an
+``application.conf`` file somewhere in your classpath, the values within it
+will be used by Akka in the exact same way as if you were using Akka directly.
+There is one difference for the configuration of actor look-up, which is not
+supported at all by Akka and added by Okku. See Okky documentation for more
+For each of the three projects, there is a files ``resources/application.conf``
+with an example of changing the IP address of the computer the systms run on
+and the port of each program. The ``#`` character is used to comment out a line
+in the configuration file (all configuration files are completely commented out
+in this repo). The IP address used there just happened to be the local IP
+address of my computer at the time I tried it.
2 calculation/resources/application.conf
@@ -0,0 +1,2 @@
+#akka.remote.netty.hostname = ""
+#akka.remote.netty.port = 2652
5 creation/resources/application.conf
@@ -0,0 +1,5 @@
+#akka.remote.netty {
+# hostname = ""
+# port = 2653
+#} = "akka://CalculatorApplication@"
8 lookup/resources/application.conf
@@ -0,0 +1,8 @@
+#akka.remote.netty {
+# hostname = ""
+# port = 2654
+#okku.lookup./looked-up {
+# hostname = ""
+# port = 2652

0 comments on commit 19e39a1

Please sign in to comment.
Something went wrong with that request. Please try again.