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

Allow ConfigurableClassLoader to use caching for specific classes

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • All
    • GreenHopper Ranking:
      0|i2z27n:
    • 9223372036854775807
    • Small
    • To be defined

    Description

      Without classes caching in ConfigurableClassLoader, we encounter very slow execution for signed jar classes.

      This ticket allows specifying class that we want to force caching.

       

      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

            acatoire Axel Catoire
            wwang Wei Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: