Why spring integration doc for akka exists only for 1.3.1, but not for future versions

There is a link to a way to integrate AKKA and Spring . Or better to say: "how to use AKKA members in a Spring environment."

http://doc.akka.io/docs/akka-modules/1.3.1/modules/spring.html

In fact, there is a modules folder http://doc.akka.io/docs/akka-modules/ , which exists only for version 1.3.1 .

 Does it mean that there is no integration for different than `1.3.1` version with spring? Or it means that we should not use it (spring integration I mean)? Or we should do it in the same way as we do it for `1.3.1` version? 
+6
source share
2 answers

The akka-spring module was not ported to the Akka 2.x series because it contradicts the way the acting systems work: under parental supervision, only actors create other actors, which means that Spring - not being an actor - cannot create actors.

In the documentation for the upcoming version 2.2, you will find a new section on how to use dependency injection when creating actors (see documents ). We are working on a more comprehensive document describing the interaction between DI and Akka frameworks.

+11
source

As Roland Kuhn noted, you continue to create child actors in your parents, otherwise you will lose the whole concept of observation.

Here is a useful article: http://blog.nemccarthy.me/?p=272 on two approaches in 2.2 on connecting Akk Actors using Spring using IndirectActorProducer .

Prior to version 2.2, you can also use UntypedActorFactory to do a similar thing. IndirectActorProducer is a much cleaner way to do this. You can also watch Creator : http://doc.akka.io/api/akka/2.2.0-RC1/index.html#akka.japi.Creator

+4
source

Source: https://habr.com/ru/post/946616/


All Articles