隨筆-75  評論-193  文章-5  trackbacks-0
          具體過程參見:http://coenraets.org/flex-spring/

          簡要描述一下:
          1、首先要繼承FlexFactory,實現Spring與Flex的集成,上文中已經提供了具體實現,下載即可。

          2、在web.xml中配置Spring,如下:
             
              <context-param>
                  
          <param-name>contextConfigLocation</param-name>
                  
          <param-value>/WEB-INF/applicationContext.xml</param-value>
              
          </context-param>

              
          <listener>
                  
          <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
              
          </listener>

          3、在service-config.xml配置文件中添加
             
              <factories>
                  
          <factory id="spring" class="flex.samples.factories.SpringFactory"/>
              
          </factories>

          4、修改remote-config.xml中原有的destination配置,原為:
                 
              <properties>      
                  <
          source>com.bluesky.flexpsp.PsPDataService</source>
             
          </properties>
              修改為:
              <properties>
                  
          <factory>spring</factory><!-- spring為第三步中的factoryID-->
                  
          <source>pspDataService</source><!-- pspDataService為bean的id -->
              
          </properties>

                
          posted on 2008-08-09 23:58 The Matrix 閱讀(849) 評論(0)  編輯  收藏 所屬分類: Flex
          主站蜘蛛池模板: 合肥市| 乳源| 夏河县| 治县。| 平昌县| 马山县| 肃北| 兖州市| 涿鹿县| 如皋市| 富源县| 巧家县| 阿勒泰市| 文水县| 青阳县| 连平县| 谢通门县| 濮阳县| 东海县| 克什克腾旗| 枝江市| 昌乐县| 奈曼旗| 阿克苏市| 柞水县| 岚皋县| 长葛市| 手游| 潼南县| 武夷山市| 和静县| 崇仁县| 乃东县| 哈尔滨市| 博湖县| 定襄县| 万源市| 镇坪县| 巴里| 海盐县| 孝昌县|