flex4 - Spring 3, Flex 4 Integration with SpringFlex 1.5.0.M2 api + configuration -
we working on project using spring 3 create web platform , using flex 4 create specific client side application. currently, need integrate spring project flex.
we using spring-flex integration library version: 1.5.0.m2
i checked older questions integration configurations defined @ entries previous versions of blazeds , spring. , understad, there may differencies.
can tell me how configuration in web.xml , other xml files needed,and how folder structures be. up-to-date tutorial links appreciated.
our business requirements are:
two servlets should exist: 1) projectservlet has mappings /.html 2) flexservlet has mappings /messagebroker/
our service classes can used in flex side 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
my flex 4, hibernate 3, , spring 3 integration refcard walks through process of setting , should work fine 1.5.0.m2 (assuming have changed namespace in spring config file). here basic web.xml example:
<?xml version="1.0" encoding="utf-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns /j2ee/web-app_2_4.xsd" version="2.4"> <display-name>project template</display-name> <listener> <listener-class>org.springframework.web.context.contextloaderlistener</liste ner-class> </listener> <listener> <listener-class>flex.messaging.httpflexsession</listener-class> </listener> <servlet> <servlet-name>flex</servlet-name> <servlet-class>org.springframework.web.servlet.dispatcherservlet</servlet-class> <init-param> <param-name>contextconfiglocation</param-name> <param-value></param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>flex</servlet-name> <url-pattern>/messagebroker/*</url-pattern> </servlet-mapping> </web-app>
that should enough started.
Comments
Post a Comment