Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-1262

Provide a clean way to get a reference to the MessageBus running in SingleNodeApplication

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Improvement
    • Status: Done
    • Minor
    • Resolution: Complete
    • None
    • M6
    • None
    • None

    Description

      Currently the message bus is only obtained via Module.getComponent(MessageBus.class). Stream testing scenarios that depend on sending and receiving payloads via named channels do not require a deployed module instance per se, but any stream flow control uses the MessageBus directly. Getting a deployed module instance in general is expensive, e.g., you have to wait for the module to deploy asynchronously, whereas the MessageBus implementation could be known a priori when the application starts. An improvement would be to ask the container for its MessageBus.

      Attachments

        Issue Links

          Activity

            People

              iperumal Ilayaperumal Gopinathan
              dturanski David Turanski
              Archiver:
              tmarshall Trevor Marshall

              Dates

                Created:
                Updated:
                Resolved:
                Archived: