Locators should not be the part of cache server. You should run locator on separate JVM. If you want to run on VM locator and cache server write bash script.
If you use GemFire only as distributed cache. Your cache servers no need any Spring Integration. It will be enough just run cacheserver with cache configurations. On your client side you will have Spring Integration, witch is quite simple.
Client:
Code:
<gfe:pool id="gemfire-pool">
<gfe:locator host="localhost" port="40403"/>
</gfe:pool>
<gfe:client-region id="complex" pool-name="gemfire-pool">
</gfe:client-region>
If you want to have custom code in your cache servers, like listeners, loaders, write-behind, functions...
Your cache configuration should looks like:
Code:
<gfe:cache />
<gfe:replicated-region id="complex">
<gfe:cache-listener>
<!-- nested cache listener reference -->
<ref bean="c-listener"/>
<!-- nested cache listener declaration -->
<bean class="some.pkg.SimpleCacheListener"/>
</gfe:cache-listener>
<!-- loader reference -->
<gfe:cache-loader ref="c-loader"/>
<!-- writer reference -->
<gfe:cache-writer ref="c-writer"/>
</gfe:replicated-region>
Any way for better GemFire understanding. I recommend to start with simple GemFire application and after try to move it to Spring GemFire integration.
The Spring GemFire documentation is very useful: http://static.springsource.org/sprin...-reference.pdf
GemFire tutorial: http://community.gemstone.com/displa...mFire+Tutorial