SGF-476 - Implement ServerLauncherCacheProvider to launch geode with spring.
Geode has removed the direct dependency on spring data gemfire in favor of using a ServiceLoader to allow overriding the behavior of geode's server launcher start behavior. Implementing the ServerLauncherCacheProvider interface to allow SDG to override the server launcher behavior to parse a spring xml file, if present.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- data source Spring XML configuration file and meta-data, using GemFire -->
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:gfe="http://www.springframework.org/schema/gemfire"
|
||||
xmlns:util="http://www.springframework.org/schema/util"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
|
||||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
|
||||
">
|
||||
|
||||
<util:properties id="gemfireProperties">
|
||||
<prop key="name">SpringContextBootstrappingInitializerTest</prop>
|
||||
<prop key="statistic-sampling-enabled">false</prop>
|
||||
<prop key="mcast-port">0</prop>
|
||||
<prop key="log-level">config</prop>
|
||||
</util:properties>
|
||||
|
||||
<gfe:cache properties-ref="gemfireProperties" use-bean-factory-locator="false"
|
||||
critical-heap-percentage="55"/>
|
||||
|
||||
<gfe:replicated-region id="TestRegion" persistent="false"/>
|
||||
|
||||
</beans>
|
||||
Reference in New Issue
Block a user