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

Make sure to use correct TCCL when acceessing a CDI bean

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • 0.4
    • None
    • component-bean
    • None

    Description

      You will see following error when you access a CDI bean from hornetq-binding service. According to https://issues.jboss.org/browse/AS7-2496 , the thread context class loader should be a one that is used to load that CDI bean. hornetq-binding service is invoked as a HornetQ client thread so the context class loader come from HornetQ. That should be switched when accessing a CDI bean.

      java.lang.IllegalStateException: Singleton not set for ModuleClassLoader for Module "org.hornetq:main" from local module loader @36d1c778 (roots: /opt/switchyard-as7-0.4/modules)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              toigaras@redhat.com tomohisa igarashi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: