Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-516

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.2.0
    • None
    • None
    • Patch Available

    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.

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            slewis Stanley J. Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: