Announcing Akka 1.2

150 views
Skip to first unread message

Roland Kuhn

unread,
Sep 19, 2011, 1:00:06 PM9/19/11
to akka-user, scala-a...@googlegroups.com
Dear hAkkers,

we are proud to announce Akka 1.2!

This version will be part of the next release of the Typesafe stack.

What is Akka?

Akka is the platform for the next generation event-driven, scalable and fault-tolerant architectures on the JVM. 

Akka implements a unique hybrid of:
  • Actors, which gives you: 
    • Simple and high-level abstractions for concurrency and parallelism. 
    • Asynchronous, non-blocking and highly performant event-driven programming model. 
    • Very lightweight event-driven threads (create ~13 million actors on 8 G RAM). 
    • High-availability through supervisor hierarchies with let-it-crash semantics. Excellent for writing highly fault-tolerant systems that never stop, systems that self-heal. 
  • Software Transactional Memory (STM).
  • Transactors: combine actors and STM into transactional actors. Allows you to compose atomic message flows with automatic retry and rollback. 
  • Remote actors: highly performant distributed actors with remote supervision and error management. 
  • Agents & Dataflow Concurrency 
  • Java and Scala API. 
What’s new in 1.2?

Akka 1.2 is rather a maintenance release than a revolutionary step: besides the new and asked-for features highlighted below it contains several deprecations which will help during the transition to the upcoming Akka 2.0 release.

Highlights:
  • Actor: more information and hooks during restart, invocation tracing
  • Future: implicit timeouts/dispatchers, onTimeout callback
  • TestKit: extended to FSM including event log, introduced TestProbe
  • back-port of durable mailboxes
  • uses Scala 2.9.1
Release notes can be found here:

http://akka.io/docs/akka/1.2/project/release-notes.html

And closed tickets for this milestone can be found in the issue tracker here:

https://www.assembla.com/spaces/akka/milestones/356697-1-2

Documentation can be found here:

http://akka.io/docs/

The source code is on github. This release is tagged v1.2:

https://github.com/jboner/akka/tree/v1.2
https://github.com/jboner/akka-modules/tree/v1.2

The Akka Maven repository is:

http://akka.io/repository/

Downloads can be found at:

http://akka.io/downloads/

Enjoy!


Roland Kuhn
Typesafe – Enterprise-Grade Scala from the Experts
twitter: @rolandkuhn

Michael Nascimento

unread,
Sep 19, 2011, 1:09:07 PM9/19/11
to akka...@googlegroups.com
Is there going to be a new Typesafe stack release containing Akka 1.2?

Regards,
Michael

> --
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To post to this group, send email to akka...@googlegroups.com.
> To unsubscribe from this group, send email to
> akka-user+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/akka-user?hl=en.
>

Jonas Bonér

unread,
Sep 19, 2011, 1:39:32 PM9/19/11
to akka...@googlegroups.com
Yes, within one week. Typesafe Stack 1.1 with Akka 1.2 and Scala 2.9.1
--
Jonas Bonér
CTO
Typesafe <http://www.typesafe.com/> - Enterprise-Grade Scala from the
Experts
Phone: +46 733 777 123
Twitter: @jboner <http://twitter.com/jboner>
Google+: http://gplus.to/jboner



√iktor Ҡlang

unread,
Sep 19, 2011, 2:48:01 PM9/19/11
to akka...@googlegroups.com, scala-a...@googlegroups.com

Great work guys, I'm damn proud!

Cheers,
V

Jonas Bonér

unread,
Sep 19, 2011, 2:52:28 PM9/19/11
to akka...@googlegroups.com, scala-a...@googlegroups.com

Damn proud it is.

--
Jonas Bonér
CTO
Typesafe - Enterprise-Grade Scala from the Experts


Phone: +46 733 777 123
Twitter: @jboner

wookietreiber

unread,
Sep 19, 2011, 3:22:47 PM9/19/11
to akka...@googlegroups.com, scala-a...@googlegroups.com
nice to have 1.2 !

do I have to consider something special using sbt compared to 1.1.3 ?

... because:

val akkaVersion = "1.2"

val typesafe = "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
val akka = "Akka Repo" at "http://akka.io/repository/"

val actor = "se.scalablesolutions.akka" % "akka-actor" % akkaVersion
val remote = "se.scalablesolutions.akka" % "akka-remote" % akkaVersion

... as well as:

val actor = "se.scalablesolutions.akka" %% "akka-actor" % akkaVersion
val remote = "se.scalablesolutions.akka" %% "akka-remote" % akkaVersion

results in:

[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: se.scalablesolutions.akka#akka-actor_2.9.1;1.2: not found
[warn] :: se.scalablesolutions.akka#akka-remote_2.9.1;1.2: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::

for both typesafe and akka repo, for projects with:

libraryDependencies ++= Seq (
actor, remote
)

also I believe the sbt documentation, e.g. for the tutorial chat server is
outdated and it would be nice to have this updated to the recent sbt version.

--

best regards
Christian Krause aka wookietreiber

---------------------------------------------

heute schon gelacht? http://www.totaberlustig.com/comics/2011-09-15-Taxi.jpg

Roland Kuhn

unread,
Sep 19, 2011, 3:54:56 PM9/19/11
to akka...@googlegroups.com, scala-a...@googlegroups.com
Hi Christian,

I have just created a fresh project using the akka-sbt-plugin and “update” succeeded; the problem exhibited by your message is the attached Scala version in the artifact name, which we don’t do for Akka. Are you sure that you get the exact same behavior when using single-% in the declaration of the dependencies?

Concerning the documentation vs. SBT version: yes, the chat server example is using SBT 0.7, but all the other “Getting Started” guides point out the SBT 0.10 syntax. I filed a ticket so we don’t forget to update it, though.

Regards,

Roland

wookietreiber

unread,
Sep 19, 2011, 4:18:27 PM9/19/11
to akka...@googlegroups.com, scala-a...@googlegroups.com
I originally used % instead of %%. I tried %% out of curiosity to try if
it'd work, because iirc sbt wiki at github says that projects built with
sbt should be declared with %% and akka is built using sbt, right?

... I'm sorry, its not exactly the same, I tried again with just one %
to double-check:

[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::

[warn] :: se.scalablesolutions.akka#akka-actor;1.2: not found
[warn] :: se.scalablesolutions.akka#akka-remote;1.2: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::

... this time no scala version, but it doesn't work either for both
repositories.

I can't remember using the akka-sbt-plugin for any of my projects using 1.1.3
and everything worked just fine ... I wonder why.

is optional/recommended to use the plugin or mandatory?

√iktor Ҡlang

unread,
Sep 19, 2011, 4:34:30 PM9/19/11
to akka...@googlegroups.com
On Mon, Sep 19, 2011 at 10:18 PM, wookietreiber <kizkizz...@googlemail.com> wrote:
I originally used % instead of %%. I tried %% out of curiosity to try if
it'd work, because iirc sbt wiki at github says that projects built with
sbt should be declared with %% and akka is built using sbt, right?

... I'm sorry, its not exactly the same, I tried again with just one %
to double-check:

[warn]          ::::::::::::::::::::::::::::::::::::::::::::::
[warn]          ::          UNRESOLVED DEPENDENCIES         ::
[warn]          ::::::::::::::::::::::::::::::::::::::::::::::
[warn]          :: se.scalablesolutions.akka#akka-actor;1.2: not found
[warn]          :: se.scalablesolutions.akka#akka-remote;1.2: not found
[warn]          ::::::::::::::::::::::::::::::::::::::::::::::

... this time no scala version, but it doesn't work either for both
repositories.

I can't remember using the akka-sbt-plugin for any of my projects using 1.1.3
and everything worked just fine ... I wonder why.



Can you check so your ModuleConfiguration for "se.scalablesolutions" is pointing towards akka.io?

Cheers,



--
Viktor Klang

Akka Tech Lead
Typesafe - Enterprise-Grade Scala from the Experts

Twitter: @viktorklang

wookietreiber

unread,
Sep 19, 2011, 4:47:33 PM9/19/11
to akka...@googlegroups.com
On Mon, Sep 19, 2011 at 10:34:30PM +0200, √iktor Ҡlang wrote:
>
>
> On Mon, Sep 19, 2011 at 10:18 PM, wookietreiber <kizkizz...@googlemail.com
> > wrote:
>
> I originally used % instead of %%. I tried %% out of curiosity to try if
> it'd work, because iirc sbt wiki at github says that projects built with
> sbt should be declared with %% and akka is built using sbt, right?
>
> ... I'm sorry, its not exactly the same, I tried again with just one %
> to double-check:
>
> [warn]          ::::::::::::::::::::::::::::::::::::::::::::::
> [warn]          ::          UNRESOLVED DEPENDENCIES         ::
> [warn]          ::::::::::::::::::::::::::::::::::::::::::::::
> [warn]          :: se.scalablesolutions.akka#akka-actor;1.2: not found
> [warn]          :: se.scalablesolutions.akka#akka-remote;1.2: not found
> [warn]          ::::::::::::::::::::::::::::::::::::::::::::::
>
> ... this time no scala version, but it doesn't work either for both
> repositories.
>
> I can't remember using the akka-sbt-plugin for any of my projects using
> 1.1.3
> and everything worked just fine ... I wonder why.
>
>
>
> Well they're definitely there: http://akka.io/repository/se/scalablesolutions/
> akka/akka-remote/1.2/


that was the first thing I checked, the typesafe repo, too, which got me
confused in the first place


> Can you check so your ModuleConfiguration for "se.scalablesolutions" is
> pointing towards akka.io?


what exactly do you mean by "ModuleConfiguration" and where do I check it ?

> Viktor Klang
>
> Akka Tech Lead
> Typesafe - Enterprise-Grade Scala from the Experts
>
> Twitter: @viktorklang
>
>

√iktor Ҡlang

unread,
Sep 19, 2011, 4:56:52 PM9/19/11
to akka...@googlegroups.com

Patrik Nordwall

unread,
Sep 20, 2011, 1:58:43 AM9/20/11
to akka...@googlegroups.com
Are you using sbt 0.10?
The tip for module configurations only applies to 0.7.

With sbt 0.10 you use a build.sbt as described in Getting Started, 

Or define the corresponding resolvers and libraryDependencies in your scala build file.

Have you really defined the typesafe resolver (in your original post you have not)?
This must be added to project settings:
resolvers += "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/"

I have verified with one of my projects and 1.2 downloads fine.


2011/9/19 √iktor Ҡlang <viktor...@gmail.com>



--

Patrik Nordwall

Typesafe - Enterprise-Grade Scala from the Experts

Twitter: @patriknw


gutzeit

unread,
Sep 20, 2011, 2:46:43 AM9/20/11
to akka...@googlegroups.com, scala-a...@googlegroups.com
Whats is the delta between 1.2 final release and 1.2 RC6 ?

Roland Kuhn

unread,
Sep 20, 2011, 3:02:28 AM9/20/11
to akka...@googlegroups.com
Pretty small: tickets 1179 & 1183 plus some documentation updates.


where most of the diff is about changing the version string.

On Sep 20, 2011, at 08:46 , gutzeit wrote:

Whats is the delta between 1.2 final release and 1.2 RC6 ?

wookietreiber

unread,
Sep 20, 2011, 2:56:03 AM9/20/11
to Akka User List
sbt: 0.10.1

fresh test project Build.scala (which is like my other builds):

---begin Build.scala
-----------------------------------------------------------

import sbt._
import Keys._

import Resolvers._
import Dependencies._
import BuildSettings._

object BuildSettings {
val buildOrganization = "foo"
val buildVersion = "0.0.1"
val buildScalaVersion = "2.9.1"
val akkaVersion = "1.2"

val buildSettings = Defaults.defaultSettings ++ Seq (
organization := buildOrganization,
version := buildVersion,
scalaVersion := buildScalaVersion
)
}

object FooBuild extends Build {
lazy val root = Project (
"bar",
file ("."),
settings = buildSettings ++ Seq (
libraryDependencies ++= Seq ( akkaActor, specs2 )
)
)
}

object Dependencies {
val akkaActor = "se.scalablesolutions.akka" % "akka-actor" %
akkaVersion
val specs2 = "org.specs2" %% "specs2" % "1.6.1" % "test"
}

object Resolvers {
val typesafe = "Typesafe Repository" at "http://repo.typesafe.com/
typesafe/releases"
}

---end Build.scala
-----------------------------------------------------------

sbt

> update

...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: se.scalablesolutions.akka#akka-actor;1.2: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
...


any ideas, suggestions, ... ?





On 20 Sep., 07:58, Patrik Nordwall <patrik.nordw...@gmail.com> wrote:
> Are you using sbt 0.10?
> The tip for module configurations only applies to 0.7.
>
> With sbt 0.10 you use a build.sbt as described in Getting Started,http://akka.io/docs/akka/1.2/intro/getting-started-first-scala.html
>
> Or define the corresponding resolvers and libraryDependencies in your scala
> build file.
>
> Have you really defined the typesafe resolver (in your original post you
> have not)?
> This must be added to project settings:
> resolvers += "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/
> "
>
> I have verified with one of my projects and 1.2 downloads fine.
>
> 2011/9/19 √iktor Ҡlang <viktor.kl...@gmail.com>
>
>
>
>
>
>
>
>
>
> > On Mon, Sep 19, 2011 at 10:47 PM, wookietreiber <
> > kizkizzbangb...@googlemail.com> wrote:
>
> >> On Mon, Sep 19, 2011 at 10:34:30PM +0200, √iktor Ҡlang wrote:
>
> >> > On Mon, Sep 19, 2011 at 10:18 PM, wookietreiber <
> >> kizkizzbangb...@googlemail.com
> >> viktor.kl...@gmail.com>
> ...
>
> Erfahren Sie mehr »

wookietreiber

unread,
Sep 20, 2011, 3:24:46 AM9/20/11
to Akka User List
I finally figured out what was wrong with my build ...

I simply forgot to add the repo(s) to the resolvers of my
buildSettings because I thought it wasn't necessary because everything
worked before. I guess it worked before, because originally I used
something like:

cat projects/test2/build.sbt
name := "My Project"

version := "1.0"

scalaVersion := "2.9.1"

resolvers += "Typesafe Repository" at "http://repo.typesafe.com/
typesafe/releases/"

libraryDependencies += "se.scalablesolutions.akka" % "akka-actor" %
"1.2"

and the dependency was already in my ivy cache ...

sry for all the confusion.

best regards
wookietreiber



On 19 Sep., 22:47, wookietreiber <kizkizzbangb...@googlemail.com>
wrote:
> On Mon, Sep 19, 2011 at 10:34:30PM +0200, √iktor Ҡlang wrote:
>
> > On Mon, Sep 19, 2011 at 10:18 PM, wookietreiber <kizkizzbangb...@googlemail.com
> >     > >> On Sep 19, 2011 8:48 PM, "√iktor Ҡlang" <viktor.kl...@gmail.com>
> >     > > best regards
> >     > > Christian Krause aka wookietreiber
>
> >     > > ---------------------------------------------
>
> >     > > heute schon gelacht?  http://www.totaberlustig.com/comics/
> >     2011-09-15-Taxi.jpg
>
> >     > > --
> >     > > You received this message because you are subscribed to the Google
> >     Groups "Akka User List" group.
> >     > > To post to this group, send email to akka...@googlegroups.com.
> >     > > To unsubscribe from this group, send email to...
>
> Erfahren Sie mehr »

wookietreiber

unread,
Sep 20, 2011, 3:20:16 AM9/20/11
to Akka User List
I finally figured out what was wrong with my build ...

I simply forgot to add the repo(s) to the resolvers of my
buildSettings because I thought it wasn't necessary because everything
worked before. I guess it worked before, because originally I used
something like:

cat projects/test2/build.sbt
name := "My Project"

version := "1.0"

scalaVersion := "2.9.1"

resolvers += "Typesafe Repository" at "http://repo.typesafe.com/
typesafe/releases/"

libraryDependencies += "se.scalablesolutions.akka" % "akka-actor" %
"1.2"

and the dependency was already in my ivy cache ...

sry for all the confusion.

best regards
wookietreiber



On 19 Sep., 22:47, wookietreiber <kizkizzbangb...@googlemail.com>
wrote:
> On Mon, Sep 19, 2011 at 10:34:30PM +0200, √iktor Ҡlang wrote:
>
> > On Mon, Sep 19, 2011 at 10:18 PM, wookietreiber <kizkizzbangb...@googlemail.com
> >     > >> On Sep 19, 2011 8:48 PM, "√iktor Ҡlang" <viktor.kl...@gmail.com>
> >     > > best regards
> >     > > Christian Krause aka wookietreiber
>
> >     > > ---------------------------------------------
>
> >     > > heute schon gelacht?  http://www.totaberlustig.com/comics/
> >     2011-09-15-Taxi.jpg
>
> >     > > --
> >     > > You received this message because you are subscribed to the Google
> >     Groups "Akka User List" group.
> >     > > To post to this group, send email to akka...@googlegroups.com.
> >     > > To unsubscribe from this group, send email to...
>
> Erfahren Sie mehr »

Roland Kuhn

unread,
Sep 20, 2011, 6:17:31 AM9/20/11
to akka...@googlegroups.com
Glad that you got it working! Could you post the final and working file in this thread so others who fall into the same trap can easily profit from your spent hours?

Thanks,

Roland

wookietreiber

unread,
Sep 20, 2011, 1:49:39 PM9/20/11
to akka...@googlegroups.com

val buildSettings = Defaults.defaultSettings ++ Seq (
organization := buildOrganization,
version := buildVersion,
- scalaVersion := buildScalaVersion
+ scalaVersion := buildScalaVersion,
+ resolvers += typesafe
)

--

Roland Kuhn

unread,
Sep 20, 2011, 5:07:01 PM9/20/11
to akka...@googlegroups.com
Thanks!
Reply all
Reply to author
Forward
0 new messages