Re: [infinispan-dev] A tool for adjusting configuration

2017-08-30 Thread Emmanuel Bernard
If built-in solutions like what Tristan proposed don't work. Copnsider Windup, it must likely have ways to transform configurations. Windup is a generic tool to migrate from some version of X to some versions of Y. Worth talking to the team. Emmanuel On Mon 17-08-28 11:41, Sebastian Laskawiec

Re: [infinispan-dev] A tool for adjusting configuration

2017-08-29 Thread Sebastian Laskawiec
Thanks a lot for all tips. It seems Tristan's solution fits the best. I've just tried it out and it seems to do the job: > ./cli.sh > embed-server --server-config=cloud.xml --std-out=echo > /subsystem=datagrid-infinispan-endpoint/rest-connector=rest-connector:remove > stop-embedded-server I

Re: [infinispan-dev] A tool for adjusting configuration

2017-08-28 Thread Tristan Tarrant
For server the tool already exists: the server CLI can work in offline mode and manipulate a configuration using DMR ops. Tristan On 8/28/17 1:41 PM, Sebastian Laskawiec wrote: > Hey, > > Our cloud integration bits require a tool for adjusting the > configuration for certain use cases. A

Re: [infinispan-dev] A tool for adjusting configuration

2017-08-28 Thread Dan Berindei
I suggest Java, any other language will be used as an excuse to leave all the maintenance work to you :) Dan On Mon, Aug 28, 2017 at 5:05 PM, Katia Aresti wrote: > Hi ! > > What about Golang ? > > Cheers, > > Katia > > On Mon, Aug 28, 2017 at 1:41 PM, Sebastian Laskawiec

Re: [infinispan-dev] A tool for adjusting configuration

2017-08-28 Thread Galder ZamarreƱo
Before you start messing with XML itself, you might want to see what we do in Hibernate 2L. We first load the XML configuration [1], and using the ConfigurationBuilderHolder we can swap cache configurations, we can tweak them...etc, and eventually we create a cache manager out of that. From

[infinispan-dev] A tool for adjusting configuration

2017-08-28 Thread Sebastian Laskawiec
Hey, Our cloud integration bits require a tool for adjusting the configuration for certain use cases. A common example would be - take this `cloud.xml` file, remove all caches, add a new, replicated cache as default one. The tool should take either configuration or a file name as input (e.g.