Java Akka和spring配置

Java Akka和spring配置,java,spring,akka,Java,Spring,Akka,我正在尝试将akka与spring结合起来(但没有成功)。基本上,我的应用程序似乎不习惯读取akka模式 包含架构的service-context.xml的一部分: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframe

我正在尝试将akka与spring结合起来(但没有成功)。基本上,我的应用程序似乎不习惯读取akka模式

包含架构的service-context.xml的一部分:

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:akka="http://akka.io/schema/akka"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
       http://akka.io/schema/akka http://repo.akka.io/akka-1.3.1.xsd">
架构位于url下:-我可以在web浏览器中轻松打开它

任何线索都有帮助, 谢谢
Marek。

我成功地将以下内容用于我的SpringBeans XML中的schemaLocation属性:

http://akka.io/akka-1.3.1.xsd


如果您注意到浏览器中会出现下载提示,而不是呈现结果,那么它可能更符合Spring的要求。

我已经成功地将以下内容用于Spring beans XML中的schemaLocation属性:

http://akka.io/akka-1.3.1.xsd


如果您注意到浏览器中会出现下载提示而不是呈现结果,那么它可能更符合Spring的要求。

如果您使用新版本的Akka 2.2,则Spring集成包已被删除(您确实不需要它)。您应该实现一个非类型的DactorFactory、一个Creator函数或一个IndirectActorProducer


有关更多信息,请参阅此博客帖子

如果您迁移到Akka 2.2的新版本,则Spring集成包已被删除(您真的不需要它)。您应该实现一个非类型的DactorFactory、一个Creator函数或一个IndirectActorProducer

有关更多信息,请参阅此博客帖子

<akka:untyped-actor id="pushManager" autostart="false" implementation="com.myspace.messaging.PushManager"> </akka:untyped-actor>
org.xml.sax.SAXParseException; lineNumber: 55; columnNumber: 143; schema_reference.4: Failed to read schema document 'http://repo.akka.io/akka-1.3.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 55 in XML document from class path resource [service-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 55; columnNumber: 143; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'akka:untyped-actor'.