[
https://issues.redhat.com/browse/ISPN-12696?page=com.atlassian.jira.plugi...
]
Ryan Emerson updated ISPN-12696:
--------------------------------
Description:
The GlOBAL context is a superset of the PERSISTENCE context, therefore if an internal SCI
is registered with the PERSISTENCE context this should also be registered with the GLOBAL
conmtext.
Currently it's necessary for Infinispan modules to register with both manually. For
example the MultiMap LifecycleManager has todo the following:
{code:java}
ctxRegistry.addContextInitializer(SerializationContextRegistry.MarshallerType.PERSISTENCE,
new PersistenceContextInitializerImpl());
ctxRegistry.addContextInitializer(SerializationContextRegistry.MarshallerType.GLOBAL, new
PersistenceContextInitializerImpl());
{code}
was:
The GlOBAL context is a superset of the PERSISTENCE context, therefore if an internal SCI
is registered with the PERSISTENCE context this should also be registered with the GLOBAL
conmtext.
Currently it's necessary for Infinispan modules to register with both manually. For
example the Query LifecycleManager has todo the following:
{code:java}
ctxRegistry.addContextInitializer(SerializationContextRegistry.MarshallerType.PERSISTENCE,
new PersistenceContextInitializerImpl());
ctxRegistry.addContextInitializer(SerializationContextRegistry.MarshallerType.GLOBAL,
MarshallerRegistration.INSTANCE);
{code}
SerializationContextRegistryImpl should automatically register
PERSISTENCE SCIs with Global context
---------------------------------------------------------------------------------------------------
Key: ISPN-12696
URL:
https://issues.redhat.com/browse/ISPN-12696
Project: Infinispan
Issue Type: Bug
Components: Marshalling
Affects Versions: 12.0.0.Final
Reporter: Ryan Emerson
Assignee: Ryan Emerson
Priority: Major
The GlOBAL context is a superset of the PERSISTENCE context, therefore if an internal SCI
is registered with the PERSISTENCE context this should also be registered with the GLOBAL
conmtext.
Currently it's necessary for Infinispan modules to register with both manually. For
example the MultiMap LifecycleManager has todo the following:
{code:java}
ctxRegistry.addContextInitializer(SerializationContextRegistry.MarshallerType.PERSISTENCE,
new PersistenceContextInitializerImpl());
ctxRegistry.addContextInitializer(SerializationContextRegistry.MarshallerType.GLOBAL, new
PersistenceContextInitializerImpl());
{code}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)