Save JobExecutorContext of ExclusiveJobAddedNotification on creation

XMLWordPrintable

      Problem:
      If the ExclusiveJobAddedNotification is invoked from another thread than the job executor thread from which it was created, it threw an NPE when attempting to access the JobExecutorContext from a Thread Local.

      Fix:
      Passing in the Job to the Listener fixes this problem.

      Note:
      This seems to happen on Jboss / EAP in distributed transactions with multiple two phase participants.

            Assignee:
            Sebastian Menski
            Reporter:
            Sebastian Menski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: