Uploaded image for project: 'FUSE ESB'
  1. FUSE ESB
  2. ESB-1178

The camel-nmr ServiceMixProducer creates a new Channel per-exchange, also doesn't close it.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Resolved at Apache
    • Affects Version/s: 4.2.0-fuse-01-00
    • Fix Version/s: 4.2.0-fuse-02-00
    • Component/s: None
    • Labels:
      None

      Description

      In ServiceMixProducer.java we create a Channel for each exchange passed into process(). Under the covers this will cause a new thread pool to be created, as when you create a Channel that creates a new Executor instance, have a look in ServiceMixImpl.createChannel() in the NMR.

      Instead this component should just create the Channel once and re-use it for subsequent exchanges.

      Also ServiceMixProducer doesn't properly close the Channel it's creating which may lead to leaking resources.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                stlewis Stan Lewis
                Reporter:
                stlewis Stan Lewis
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: