关于 AKKA
和 Spring
的集成方式有一个链接。或者更好地说:“如何在 spring
环境中使用 Akka
actor”。
http://doc.akka.io/docs/akka-modules/1.3.1/modules/spring.html
实际上有modules
文件夹http://doc.akka.io/docs/akka-modules/仅适用于 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?
最佳答案
akka-spring
模块没有移植到 Akka 2.x 系列,因为它与 actor 系统的工作方式冲突:在 parent 监督下,只有 actors 才能创建其他 actors,这意味着 Spring——不是作为 Actor ——不能创造 Actor 。
即将发布的 2.2 版本的文档中有一个新部分,内容是关于如何在创建 actor 时使用依赖注入(inject)(参见 the docs)。我们正在编写一份更完整的文档,描述 DI 框架和 Akka 之间的相互作用。
关于java - 为什么 akka 的 spring 集成文档只存在于 1.3.1 而不是下一个版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16948292/