我們正在開發一個項目,我們正在使用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