SHARE
TWEET

c

a guest Sep 6th, 2017 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3.       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.       xmlns:os-core="http://www.openspaces.org/schema/core"
  5.       xmlns:context="http://www.springframework.org/schema/context"
  6.       xsi:schemaLocation="http://www.springframework.org/schema/beans
  7.  http://www.springframework.org/schema/beans/spring-beans-4.1.xsd  
  8.  http://www.springframework.org/schema/context
  9.  http://www.springframework.org/schema/context/spring-context-3.0.xsd
  10.  http://www.openspaces.org/schema/core http://www.openspaces.org/schema/12.1/core/openspaces-core.xsd">
  11.  
  12.     <bean id="propertiesConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
  13.  
  14.     <!--
  15.        Enables the usage of @GigaSpaceContext annotation based injection.
  16.    -->
  17.     <!--<os-core:giga-space-context/>-->
  18.  
  19.     <bean class="org.springframework.beans.factory.annotation.RequiredAnnotationBeanPostProcessor"/>
  20.  
  21.     <!--
  22.        The Data feeder bean, writing new Data objects to the space in a constant interval.
  23.    -->
  24.     <bean id="interactionSrv" class="org.lightadmin.boot.service.InteractionServiceGSImpl"/>
  25.  
  26.     <!--
  27.        Enables the usage of @GigaSpaceContext annotation based injection.
  28.    -->
  29.  
  30.     <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
  31.         <property name="driverClassName" value="org.postgresql.Driver"/>
  32.         <property name="url" value="jdbc:postgresql://localhost:5432/lightAdmin"/>
  33.         <property name="username" value="postgres"/>
  34.         <property name="password" value="root"/>
  35.     </bean>
  36.  
  37.     <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
  38.         <property name="dataSource" ref="dataSource"/>
  39.         <property name="hibernateProperties">
  40.             <props>
  41.                 <prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
  42.                 <prop key="hibernate.cache.provider_class">org.hibernate.cache.internal.NoCachingRegionFactory</prop>
  43.                 <prop key="hibernate.cache.use_second_level_cache">false</prop>
  44.                 <prop key="hibernate.cache.use_query_cache">false</prop>
  45.             </props>
  46.         </property>
  47.         <property name="annotatedClasses">
  48.             <list>
  49.                 <value>org.lightadmin.boot.gsdomain.PersonGS</value>
  50.             </list>
  51.         </property>
  52.     </bean>
  53.  
  54.     <bean id="hibernateSpaceDataSource" class="org.openspaces.persistency.hibernate.DefaultHibernateExternalDataSource">
  55.         <property name="sessionFactory" ref="sessionFactory"/>
  56.         <property name="initialLoadChunkSize" value="2000"/>
  57.         <property name="initialLoadEntries">
  58.             <list>
  59.                 <value>org.lightadmin.boot.gsdomain.PersonGS</value>
  60.                 <!-- <value>org.lightadmin.boot.gsdomain.UsersGS</value> -->
  61.             </list>
  62.         </property>
  63.     </bean>
  64.  
  65.  
  66.     <bean id="cc" class="com.avaya.ept.cra.gsc.service.ConnectionController"/>
  67.  
  68.     <os-core:space id="space" url="jini://*/*/test" external-data-source="hibernateSpaceDataSource" >
  69.         <os-core:properties>
  70.             <props>
  71.                 <prop key="space-config.engine.cache_policy">1</prop>
  72.                 <prop key="cluster-config.cache-loader.external-data-source">true</prop>
  73.                 <prop key="cluster-config.cache-loader.central-data-source">true</prop>
  74.                 <prop key="cluster-config.mirror-service.url">
  75.                     jini://*/mirror-service_container/mirror-service
  76.                 </prop>
  77.                 <prop key="cluster-config.mirror-service.bulk-size">100</prop>
  78.                 <prop key="cluster-config.mirror-service.interval-millis">2000</prop>
  79.                 <prop key="cluster-config.mirror-service.interval-opers">100</prop>
  80.                 <prop key="cluster-config.groups.group.repl-policy.repl-original-state">true</prop>
  81.             </props>
  82.         </os-core:properties>
  83.     </os-core:space>
  84.  
  85.     <!-- MIRROR -->
  86.     <bean id="hibernateSpaceSynchronizationEndpoint"
  87.          class="org.openspaces.persistency.hibernate.DefaultHibernateSpaceSynchronizationEndpointFactoryBean">
  88.         <property name="sessionFactory" ref="sessionFactory"/>
  89.     </bean>
  90.    
  91.     <os-core:mirror id="mirror" external-data-source="hibernateSpaceDataSource"  operation-grouping="group-by-replication-bulk"  url="jini://*/*/test">
  92.         <os-core:source-space name="test" partitions="2" backups="1"/>
  93.     </os-core:mirror>
  94.    
  95.     <os-core:giga-space id="gigaSpace" space="space" tx-manager="transactionManager"/>
  96.  
  97.     <os-core:distributed-tx-manager id="transactionManager"/>
  98.  
  99.  
  100. </beans>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top