Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-5396

HotRod client does not propagate user defined class loader to its marshaller

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgencur Martin Gencur
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: