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.
If you want to have custom code in your cache servers, like listeners, loaders, write-behind, functions...
<gfe:locator host="localhost" port="40403"/>
<gfe:client-region id="complex" pool-name="gemfire-pool">
Your cache configuration should looks like:
Any way for better GemFire understanding. I recommend to start with simple GemFire application and after try to move it to Spring GemFire integration.
<!-- nested cache listener reference -->
<!-- nested cache listener declaration -->
<!-- loader reference -->
<!-- writer reference -->
The Spring GemFire documentation is very useful: http://static.springsource.org/sprin...-reference.pdf
GemFire tutorial: http://community.gemstone.com/displa...mFire+Tutorial