title: Spring 3, Flex 4 Integration with SpringFlex 1.5.0.M2 api + configuration
body: <p>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.</p>
  
  <p>We are using Spring-Flex integration library version: 1.5.0.M2 </p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>Our business requirements are: </p>
  
  <p>Two servlets should exist: 1) projectServlet that has mappings /<em>.html
                             2) flexServlet    that has mappings /messageBroker/</em></p>
  
  <p>Our service classes that can be used in Flex side will be like:</p>
  
  <pre><code>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);
      }
  
  }
  </code></pre>
  
  <p>Regards,</p>
  
  <p>Ugur</p>