Pergunta

We are working on a project where we are using Spring 3 to create a web platform and using Flex 4 to create a specific client side application. Currently, we need to integrate Spring project with Flex.

We are using Spring-Flex integration library version: 1.5.0.M2

I checked the older questions but the integration configurations defined at those entries are generally for previous versions of BlazeDS and Spring. And as I understad, there may be some differencies.

Can anybody tell me how to do the configuration in web.xml and any other xml files needed,and how the folder structures will be. Any up-to-date tutorial links will be appreciated.

Our business requirements are:

Two servlets should exist: 1) projectServlet that has mappings /.html 2) flexServlet that has mappings /messageBroker/

Our service classes that can be used in Flex side will be like:

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);
    }

}

Regards,

Ugur

Nenhuma solução correta

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top