[infinispan-issues] [JBoss JIRA] (ISPN-5396) HotRod client does not propagate user defined class loader to its marshaller
Martin Gencur (JIRA)
issues at jboss.org
Tue Apr 21 10:25:33 EDT 2015
Martin Gencur created ISPN-5396:
-----------------------------------
Summary: HotRod client does not propagate user defined class loader to its marshaller
Key: ISPN-5396
URL: https://issues.jboss.org/browse/ISPN-5396
Project: Infinispan
Issue Type: Bug
Affects Versions: 7.2.0.CR1
Reporter: Martin Gencur
When HR client is provided as a module for WildFly and the module is made available to the application through jboss-deployment-structure.xml, the HR client can't see custom classes (such as custom events) from the application unless a a specific class loader is passed to GenericJbossMarshaller and that marshaller is passed to the configuration.
The only way to pass the right class loader to HR client is a bit cumbersome:
{code}
builder.marshaller(new GenericJBossMarshaller(this.getClass().getClassLoader()));
{code}
But this does not work when a different marshaller is used. I still need to check how this works with Protostream when ProtostreamMarshaller is used.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the infinispan-issues
mailing list