I am using gfsh + start server (just as John has shown) currently and it does work. I was hoping for a more intuitive place, like gemfire.properties for example. Thanks for the hints on Spring Data GF but I will be using pure client/server mode (way too much data) so I think settings such properties on the client would not do it, would it?
2016-01-18 23:37 GMT+01:00 John Blum <[email protected]>: > 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) >
