Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:flex="http://www.springframework.org/schema/flex" xmlns:security="http://www.springframework.org/schema/security"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="http://www.springframework.org/schema/aop
- http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-2.5.xsd
- http://www.springframework.org/schema/flex
- http://www.springframework.org/schema/flex/spring-flex-1.0.xsd
- http://www.springframework.org/schema/security
- http://www.springframework.org/schema/security/spring-security-2.0.4.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
- ">
- <context:annotation-config/>
- <context:component-scan base-package="fr.schneider.lancid"/>
- <bean id="dpHibernateRemotingAdapter"
- class="org.springframework.flex.core.ManageableComponentFactoryBean">
- <constructor-arg
- value="org.dphibernate.adapters.RemotingAdapter" />
- <property name="properties">
- <value>
- {"dpHibernate" :
- {
- "serializerFactory" : "org.dphibernate.serialization.SpringContextSerializerFactory"
- }
- }
- </value>
- </property>
- </bean>
- <bean id="dpHibernateMessagingAdapter"
- class="org.springframework.flex.core.ManageableComponentFactoryBean">
- <constructor-arg
- value="org.dphibernate.adapters.MessagingAdapter" />
- </bean>
- <!-- <bean id="proxyBatchLoader" class="org.dphibernate.services.ProxyBatchLoader" autowire="constructor" /> -->
- <bean id="dataAccessService"
- class="org.dphibernate.services.SpringLazyLoadService"
- autowire="constructor">
- <flex:remoting-destination />
- </bean>
- <bean id="hibernateSessionFilter" class="org.dphibernate.filters.SpringHibernateSessionServletFilter" />
- <bean id="dpHibernateCache"
- class="org.dphibernate.serialization.DPHibernateCache" scope="prototype" />
- <bean id="dpHibernateSerializer"
- class="org.dphibernate.serialization.HibernateSerializer"
- scope="prototype">
- <property name="pageSize" value="10"/>
- </bean>
- <bean id="dpHibernateDeserializer"
- class="org.dphibernate.serialization.HibernateDeserializer"
- scope="prototype" />
- <bean id="hibernateProxyResolver" class="org.dphibernate.persistence.state.DbProxyResolver"
- scope="prototype">
- <constructor-arg ref="sessionFactory" />
- </bean>
- <flex:message-broker>
- <flex:remoting-service default-adapter-id="dpHibernateRemotingAdapter" default-channels="my-amf,my-secure-amf" />
- <flex:message-service default-adapter-id="dpHibernateMessagingAdapter" default-channels="my-streaming-amf,my-longpolling-amf,my-polling-amf" />
- </flex:message-broker>
- <bean id="productService" class="fr.schneider.lancid.service.ProductService"/>
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment