Re: [infinispan-dev] Auto-detection of appropriate key2StringMapperClass

2017-03-09 Thread Paul Ferraro
Funny that you mention this, because I need to implement this for WildFly.next to support Infinispan 9, where the binary key store is no longer an option. We need to be able to map complex keys for storing web sessions, Hibernate keys, and @Stateful EJBs to strings. An auto-discovered mapper is

Re: [infinispan-dev] Auto-detection of appropriate key2StringMapperClass

2017-03-09 Thread Dan Berindei
On Thu, Mar 9, 2017 at 1:09 PM, Sanne Grinovero wrote: > On 9 March 2017 at 10:22, Dan Berindei wrote: >> On Thu, Mar 9, 2017 at 11:48 AM, Sanne Grinovero >> wrote: >>> Hi Dan! >>> >> >> Hey Sanne :) >> >>> On 9 March 2017 at

Re: [infinispan-dev] Auto-detection of appropriate key2StringMapperClass

2017-03-09 Thread Sanne Grinovero
On 9 March 2017 at 10:22, Dan Berindei wrote: > On Thu, Mar 9, 2017 at 11:48 AM, Sanne Grinovero wrote: >> Hi Dan! >> > > Hey Sanne :) > >> On 9 March 2017 at 09:38, Dan Berindei wrote: >>> Every store can have its own

Re: [infinispan-dev] Auto-detection of appropriate key2StringMapperClass

2017-03-09 Thread Dan Berindei
On Thu, Mar 9, 2017 at 11:48 AM, Sanne Grinovero wrote: > Hi Dan! > Hey Sanne :) > On 9 March 2017 at 09:38, Dan Berindei wrote: >> Every store can have its own Key2StringMapper, so I really don't think >> service discovery is appropriate here. > >

Re: [infinispan-dev] Auto-detection of appropriate key2StringMapperClass

2017-03-09 Thread Sanne Grinovero
Hi Dan! On 9 March 2017 at 09:38, Dan Berindei wrote: > Every store can have its own Key2StringMapper, so I really don't think > service discovery is appropriate here. I suggested a default, while maintaining the property as an override option. It won't make any

Re: [infinispan-dev] Auto-detection of appropriate key2StringMapperClass

2017-03-09 Thread Dan Berindei
Every store can have its own Key2StringMapper, so I really don't think service discovery is appropriate here. My favourite solution would be to have a default Key2StringMapper implementation that uses Java serialization (not our internal marshalling, because that can change between versions). It

[infinispan-dev] Auto-detection of appropriate key2StringMapperClass

2017-03-08 Thread Sanne Grinovero
It seems I keep forgetting that the "key2StringMapperClass" needs to be explicitly set when using the String based JDBC CacheStore, which I think is a quite popular store. http://infinispan.org/docs/dev/user_guide/user_guide.html#storing_the_index_in_a_database I think we could remove the need