On Wed, May 12, 2021 at 9:22 AM Martin Goldhahn <
mgol...@gmail.com> wrote:
>
> Why is our cache-container configured with this module?
> Well, documentation is scarce and this was the same type of cache as ours. We didn't understand how the modules affects the marshalling.
In general, look to the model reference documentation for descriptions
of attributes:
https://docs.wildfly.org/23/wildscribe/subsystem/infinispan/cache-container/index.html
Unfortunately, to your point, the description of this attribute is not
very clear. I'll fix this for WF24.
> The JavaSerializationMarshaller is in the infinispan commons. Since the infinispan main module has a dependency to infinispan commons, I guess we don't have to add the module explicitely. Is that correct.
This marshaller is not exposed by WildFly. Starting with WF24, the
marshaller will be explicitly configured. Currently, there are 2
options: JBoss Marshalling and ProtoStream.
> But what is the default marshaller if no module is specified?
If no module is defined, the cache container will be configured to use
JBoss Marshalling.
> When I read the docs it sounds like Protobuf is the default marshaller. I also noticed that the JavaSerializationMarshaller is deprecated.
While JavaSerializationEncoder is deprecated - I don't think the
JavaSerializationMarshaller is.
> How can we ensure it is used if Infinispan decides to change the default behavior?
Initially, I thought that auto-configuring the marshaller would be
simpler for users. I regret that decision - hence the decision to
make this explicit starting with WF24.
Once the marshaller is explicitly configured - changes to the default
behavior of Infinispan will not affect your application, as this logic
resides in our integration code.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/wildfly/b83f3d12-f3cc-4fe7-b5fe-84aabc5f4d0dn%40googlegroups.com.