Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-473

ability to customize a bit more the classloaders

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.1
    • Component/s: None
    • Labels:
      None

      Description

      the following system properties are mandatory to configure it (app name can be ommitted if the config is global):
      tomee.classloader.configurer.<app name>.clazz = org.apache.openejb.classloader.DefaultClassLoaderConfigurer
      tomee.classloader.configurer.<app name>.addedFolder = /foo/custom/jars
      tomee.classloader.configurer.<app name>.excludedListFile = /foo/custom/excluded.txt

      • excludedListFile is a list of prefixes excluded (one by line)
      • added folder: add all jar/zip/directory in the folder to the classloader
      • clazz : implementation of ClassLoaderConfigurer (need to be in the container since the classloader of the app is not created when called)

      the .clazz value can be a list of prefixes (foo.bar,dummy) which will be used to get other configurer definition (needs foo.bar.clazz, foo.bar.addedFolder....)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              romain.manni-bucau Romain Manni-Bucau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: