Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2798

Allow ConfigurableClassLoader to use caching from specific classes is slow when load classes from a signed jar

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • All
    • Small

    Description

      See https://jira.talendforge.org/browse/TDI-51554
      seems the jar verfiy process do when every class load in it.

       

      Resolution selected:

      When using ConfigurableClassLoader (tccl) define a system property named talend.tccl.cacheable.classes which contains a list of cacheables classes prefixes separated by ,.
      Sample

      System.setProperty("talend.tccl.cacheable.classes", "org.apache.ziplock.JarLocation,com.ctc.wstx.stax");
      

      When this property is set all classes starting by the prefixes will be cacheables. Ie:

      • org/apache/ziplock/JarLocation.class will use cache.
      • org/apache/ziplock/Archive.class will NOT use cache.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            wwang Wei Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: