Guest User

Untitled

a guest
Feb 15th, 2011
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.79 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3.        xmlns:flex="http://www.springframework.org/schema/flex" xmlns:security="http://www.springframework.org/schema/security"
  4.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
  5.        xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
  6.        xmlns:util="http://www.springframework.org/schema/util"
  7.        xsi:schemaLocation="http://www.springframework.org/schema/aop
  8.                 http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
  9.                http://www.springframework.org/schema/beans
  10.                http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
  11.                 http://www.springframework.org/schema/context
  12.                 http://www.springframework.org/schema/context/spring-context-2.5.xsd
  13.                http://www.springframework.org/schema/flex
  14.                http://www.springframework.org/schema/flex/spring-flex-1.0.xsd
  15.                http://www.springframework.org/schema/security
  16.                http://www.springframework.org/schema/security/spring-security-2.0.4.xsd                
  17.                http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
  18.                http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
  19.                ">
  20.        
  21.         <context:annotation-config/>
  22.         <context:component-scan base-package="fr.schneider.lancid"/>
  23.        
  24.         <bean id="dpHibernateRemotingAdapter"
  25.               class="org.springframework.flex.core.ManageableComponentFactoryBean">
  26.             <constructor-arg
  27.                 value="org.dphibernate.adapters.RemotingAdapter" />
  28.             <property name="properties">
  29.                 <value>
  30.                     {"dpHibernate" :
  31.                         {
  32.                             "serializerFactory" : "org.dphibernate.serialization.SpringContextSerializerFactory"
  33.                         }
  34.                     }
  35.             </value>
  36.             </property>
  37.         </bean>
  38.        
  39.         <bean id="dpHibernateMessagingAdapter"
  40.             class="org.springframework.flex.core.ManageableComponentFactoryBean">
  41.             <constructor-arg
  42.                 value="org.dphibernate.adapters.MessagingAdapter" />
  43.         </bean>
  44.        
  45.         <!-- <bean id="proxyBatchLoader" class="org.dphibernate.services.ProxyBatchLoader" autowire="constructor" /> -->
  46.        
  47.         <bean   id="dataAccessService"
  48.                 class="org.dphibernate.services.SpringLazyLoadService"
  49.                 autowire="constructor">
  50.             <flex:remoting-destination />
  51.         </bean>
  52.        
  53.         <bean id="hibernateSessionFilter" class="org.dphibernate.filters.SpringHibernateSessionServletFilter" />
  54.        
  55.         <bean   id="dpHibernateCache"
  56.                 class="org.dphibernate.serialization.DPHibernateCache" scope="prototype" />
  57.        
  58.         <bean   id="dpHibernateSerializer"
  59.                 class="org.dphibernate.serialization.HibernateSerializer"
  60.                 scope="prototype">
  61.             <property name="pageSize" value="10"/>
  62.         </bean>
  63.        
  64.         <bean   id="dpHibernateDeserializer"
  65.                 class="org.dphibernate.serialization.HibernateDeserializer"
  66.                 scope="prototype" />
  67.        
  68.         <bean id="hibernateProxyResolver" class="org.dphibernate.persistence.state.DbProxyResolver"
  69.             scope="prototype">
  70.             <constructor-arg ref="sessionFactory" />
  71.         </bean>
  72.        
  73.         <flex:message-broker>
  74.             <flex:remoting-service default-adapter-id="dpHibernateRemotingAdapter" default-channels="my-amf,my-secure-amf" />
  75.             <flex:message-service  default-adapter-id="dpHibernateMessagingAdapter" default-channels="my-streaming-amf,my-longpolling-amf,my-polling-amf" />
  76.         </flex:message-broker>
  77.        
  78.         <bean id="productService" class="fr.schneider.lancid.service.ProductService"/>
  79. </beans>
Advertisement
Add Comment
Please, Sign In to add comment