Home > Mobile >  Infinispan - Unable to specify encoding for remote cache
Infinispan - Unable to specify encoding for remote cache

Time:04-10

I have seen quite a number of examples from enter image description here

Any help will be much appreciated. Thanks!
Update: I finally discovered why my cache only had one piece of data! Solely because of this setting, DefaultTemplate.INVALIDATION_ASYNC. It evicts "stale" data when a modification is made to the cache. Found this information enter image description here

CodePudding user response:

After fighting with this for a few days, I've completely changed the way I do the configuration and removed the lambda style configuration as it was difficult to include the encoding config. I followed this tutorial and just declared the two configuration methods as Spring beans! It sets the encoding easily now!
Answer to Update2:After adding these lines to the builder configuration:

.marshaller(new ProtoStreamMarshaller())
.addContextInitializers(new ProductInitializerImpl())
.addJavaSerialAllowList("com.person.model.*")

Remember to add the Proto file generated from the ProtoStream annotation processor plugin to the dashboard else, you'll get the same error message as I got in my updated question!

  • Related