Details
-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
7.2.0.CR1
-
None
-
None
Description
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:
builder.marshaller(new GenericJBossMarshaller(this.getClass().getClassLoader()));
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.