Flex + Cairgorm + BlazeDS + Spring + Hibernate

这是在网上找到的一篇关于整合这些技术的文章,特此记录一下:

http://www.docin.com/p-25377186.html

http://static.springsource.org/spring-flex/docs/1.0.x/reference/html/ch02s03.html

 

web.xml的配置

<!-- FLEX Configuration -->

 <!-- MessageBroker Servlet -->
 <servlet>
  <servlet-name>MessageBrokerServlet</servlet-name>
  <display-name>MessageBrokerServlet</display-name>
  <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
  <init-param>
   <param-name>services.configuration.file</param-name>
   <param-value>/WEB-INF/flex/services-config.xml</param-value>
  </init-param>
  <load-on-startup>1</load-on-startup>
 </servlet>

 <servlet>
  <servlet-name>flex</servlet-name>
  <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  <init-param>
   <param-name>contextConfigLocation</param-name>
   <param-value>/WEB-INF/classes/context/flex/flex-context.xml</param-value>
  </init-param>
  <load-on-startup>1</load-on-startup>
 </servlet>

 <servlet-mapping>
  <servlet-name>flex</servlet-name>
  <url-pattern>/flash/messagebroker/*</url-pattern>
 </servlet-mapping>

你可能感兴趣的:(Hibernate)