为什么akka的spring integration doc仅存在于1.3.1但不存在于下一版本
关于整合AKKA
和Spring
的方式有一个链接。 或者更好地说:“如何在spring
环境中使用Akka
演员”。
http://doc.akka.io/docs/akka-modules/1.3.1/modules/spring.html
实际上只有1.3.1
版本存在modules
文件夹http://doc.akka.io/docs/akka-modules/ 。
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?
akka-spring
模块没有被移植到Akka 2.x系列,因为它与actor系统的工作方式相冲突:在父母监督下,只有actor创建其他actor,这意味着Spring – 不是actor也不能创建actor。
在即将发布的2.2版本的文档中有一个关于如何在创建actor时使用dependency injection的新部分(参见文档 )。 我们正在编写一份更完整的文档,描述DI框架与Akka之间的相互作用。
正如罗兰库恩所指出的那样,你要在父母身边创造儿童演员,否则就会失去整个监督的概念。
这里有一个有用的post: http : //blog.nemccarthy.me/? p = 272关于使用IndirectActorProducer
将Akka Actors与Spring连接起来的2.2中的两种方法。
在2.2之前,你也可以使用UntypedActorFactory
做类似的事情。 IndirectActorProducer
是一种更简洁的方法。 你也可以看看Creator
: http : //doc.akka.io/api/akka/2.2.0-RC1/index.html#akka.japi.Creator