Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16764

Box component does not reuse BoxAPIConnection when configured at the component level

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.11.0
    • 3.11.1, 3.12.0
    • camel-box
    • None
    • Unknown

    Description

      There is some logic in BoxEndpoint where it is supposed to see if the endpoint configuration is the same as that set on the component, and if it is, reuse the 'shared' BoxAPIConnection from the component.

      Since there's no equals / hashCode methods on BoxConfiguration, the equality check always fails and a new BoxAPIConnection is created for every endpoint. This potentially has a significant impact on the application startup time, as seen in the Camel Quarkus camel-box integration test:

      https://github.com/apache/camel-quarkus/issues/2830

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: