Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-630

Application ClassLoader should be passed via deployer

    XMLWordPrintable

Details

    Description

      Several gateways are doing something like this to set the class loader for incoming messages:

      ClassLoader origCL = Thread.currentThread().getContextClassLoader();

      try {
      Thread.currentThread().setContextClassLoader(anotherCL);
      }
      finally {
      Thread.currentThread().setContextClassLoader(origCL);
      }

      We should create a standard slot for the application loader and pass that in through init in the component's activator (or something equivalent).

      Attachments

        Activity

          People

            Unassigned Unassigned
            kbabo1@redhat.com Keith Babo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: