【发布时间】:2011-08-22 21:47:12
【问题描述】:
我们正在开展一个项目,我们使用 Spring 3 创建 Web 平台并使用 Flex 4 创建特定的客户端应用程序。目前,我们需要将 Spring 项目与 Flex 集成。
我们使用的是Spring-Flex集成库版本:1.5.0.M2
我检查了较早的问题,但这些条目中定义的集成配置通常适用于 BlazeDS 和 Spring 的早期版本。据我了解,可能存在一些差异。
谁能告诉我如何在 web.xml 和任何其他所需的 xml 文件中进行配置,以及文件夹结构如何。任何最新的教程链接将不胜感激。
我们的业务需求是:
应该存在两个 servlet:1) 具有映射 /.html 的 projectServlet 2) 具有映射 /messageBroker/
的 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);
}
}
问候,
乌古尔
【问题讨论】: