Hi Allan, Take a look at this Typesafe Activator template: https://typesafe.com/activator/template/akka-sample-multi-node-scala
Let us know if that solves your problem or not. /Patrik On Wed, Mar 19, 2014 at 10:55 PM, Allan Brighton <[email protected]>wrote: > Correction: The *multinode.max-nodes *property does not need to be set if > "sbt multi-jvm:test" is run, but if I run "sbt test", I get: > > java.lang.IllegalStateException: need system property >> multinode.max-nodes to be set > > > On Wednesday, March 19, 2014 10:29:13 PM UTC+1, Allan Brighton wrote: >> >> Hi, >> >> I'm using the settings below for a multi-jvm test. After upgrading to >> Akka-2.3.0, >> I got an error stating that I needed to define the *multinode.max-nodes * >> system property. >> I added that below and now it works when I run "sbt multi-jvm:test", but >> I can't figure out how to add the setting >> so that it is used with "sbt test" as well. Any tips? >> >> >>> lazy val multiJvmSettings = SbtMultiJvm.multiJvmSettings ++ Seq( >>> // make sure that MultiJvm test are compiled by the default test >>> compilation >>> compile in MultiJvm <<= (compile in MultiJvm) triggeredBy (compile >>> in Test), >>> // Required system property >>> jvmOptions in MultiJvm += "-Dmultinode.max-nodes=2", >>> // Next line fixes missing source folder in idea project >>> unmanagedSourceDirectories in Test <+= baseDirectory { _ / "src" / >>> "multi-jvm" / "scala" }, >>> parallelExecution in Global := false, >>> executeTests in Test <<= >>> (executeTests in Test, executeTests in MultiJvm) map { >>> case ((testResults), (multiJvmResults)) => >>> val overall = >>> if (testResults.overall.id < multiJvmResults.overall.id) >>> multiJvmResults.overall >>> else testResults.overall >>> Tests.Output(overall, >>> testResults.events ++ multiJvmResults.events, >>> testResults.summaries ++ multiJvmResults.summaries) >>> } >>> ) >> >> >> Thanks, >> Allan >> >> -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
