Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6008

CommandDispatcher commands execute using wrong TCCL

    XMLWordPrintable

Details

    Description

      A command containing the following code:

      public class MyCommand implements Command<Void, Void> {
          public Void execute(Void context) throws Exception {
              Thread.currentThread().getClassLoader().loadClass(this.getClass().getName());
          }
      }
      

      currently throws a ClassNotFoundException.
      A command executed with the command dispatcher should be able to load application classes using the TCCL.

      In fact, the following application callbacks from the clustering API all use the wrong TCCL:

      • CommandDispatcher command execution
      • CommandDispatcherFactory cluster membership listener
      • Cache topology membership listener
      • Registry listener
      • ServiceProviderRegistry listener

      Attachments

        Activity

          People

            pferraro@redhat.com Paul Ferraro
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: