我们正在开发一个项目,我们正在使用Spring 3创建Web平台并使用Flex 4创建特定的客户端应用程序。目前,我们需要将Spring项目与Flex集成。Spring 3,Flex 4与SpringFlex 1.5.0.M2 api +配置集成
我们正在使用Spring-Flex集成库版本:1.5.0.M2
我签上了年纪的问题,但在这些条目中定义的集成配置一般是BlazeDS和Spring之前的版本。正如我所了解的,可能有一些不同之处。
任何人都可以告诉我如何在web.xml和其他所需的XML文件中进行配置,以及文件夹结构如何。任何最新的教程链接将不胜感激。
我们的业务要求是:
两个servlet应该存在:1)具有映射projectServlet /有映射/ messageBroker/
我们的服务类,可用于的.html 2)flexServlet在Flex端将是这样的:
package com.ecognitio.service;
import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.flex.remoting.RemotingInclude;
import org.springframework.stereotype.Service;
@Service
@RemotingDestination
public class Foo {
@RemotingInclude
public void sayHello(String name){
System.out.println("Hello: "+name);
}
}
问候,
Ugur