Some test code to get my head around Akka Java api
Java Scala
Failed to load latest commit information.
AkkawebDemo1.0/src/main fixed build, added meat to readme file Nov 17, 2010



Sample code for testing out and learning the Akka framework's Java API.


1. Project structure and compile

    There are 3 projects in the repository:

    * AkkawebDemo1.0    : this is the 'server' project, where remote typed and untyped actors run.
    * AkkawebDemoClient : 'client' project, where client actors are executed. Client actors normally invoke remote actors deployed in the server.
    * common            : shared code.

    To compile and run the code you need to install Gradle 0.9-rc1 ( 
    - Download and unzip Gradle (
    - Follow installation instruction here:

    After Gradle installation, run 'gradle clean build' in the project root folder.

2. Generate Intellij Idea project file

    run 'gradle idea' in one of the 3 project folders. The task will generate the .iml project file with all the dependencies set.
    Open Idea, File --> New Module --> Import Existing Module --> Select .iml file

3. Running the tests
    At the moment the process for running the tests is quite rudimental. There are two "Stress tests" in the AkkawebDemoClient.
    One is used to test concurrency for Untyped actors, the second for testing concurrency in the Typed Actors.
    The current tests are meant for testing remote actors, therefore the Akka server has to be started before launching the tests.
    Open a console, cd to AkkawebDemo1.0 folder and run
        gradle clean jettyRun
    This should start the Akka server.
    To run the stress test for Untyped actors, cd to the AkkawebDemoClient folder and run:
        gradle clean runUntypedTest -i
    To run the stress test for Typed actors, cd to the AkkawebDemoClient folder and run:
        gradle clean runUntypedTest -i
    Do not forget to add the -i flag, otherwise the output of the test will not be displayed on the console.