Hi Rafal- The following reference from the GemFire User Guide shows setting this GemFire System property via Gfsh on the command line...
http://gemfire.docs.pivotal.io/docs-gemfire/latest/developing/transactions/cache_transactions_by_region_type.html#concept_omy_341_wk Like so... gfsh start server --name=server1 --dir=server1_dir \ --J=-Dgemfire.ALLOW_PERSISTENT_TRANSACTIONS=true Alternatively, when using Spring (Data GemFire) configuration meta-data (e.g. XML), you can do the following... <util:properties id="gemfireProperties"> <prop key="name">server1</prop> <prop key="mcast-port">0</prop> <prop key="log-level">warning</prop> * <prop key="ALLOW_PERSISTENT_TRANSACTIONS">true</prop>* </util:properties> <gfe:cache properties-ref="gemfireProperties"/> Or better yet, perhaps with Spring Java Configuration... public class Config { @Bean Properties gemfireProperties() { Properties gemfireProperties = new Properties(); gemfireProperties.setProperty("name", "server1"); gemfireProperties.setProperty("mcast-port", "0"); gemfireProperties.setProperty("log-level", "warning"); * gemfireProperties.setProperty("ALLOW_PERSISTENT_TRANSACTIONS", "true");* return gemfireProperties; } @Bean CacheFactoryBean gemfireCache() { CacheFactoryBean gemfireCache = new CacheFactoryBean(); gemfireCache.setLazyInitialize(false); gemfireCache.setProperties(gemfireProperties()); gemfireCache.setUseBeanFactoryLocator(false); return gemfireCache; } } Hope this helps. Cheers, John On Mon, Jan 18, 2016 at 2:12 PM, Rafal G. <[email protected]> wrote: > Hi, > > What is the best place to set: ALLOW_PERSISTENT_TRANSACTIONS property? > > Rafal > -- -John 503-504-8657 john.blum10101 (skype)
