You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2021/06/29 07:06:00 UTC

[jira] [Created] (CAMEL-16764) Box component does not reuse BoxAPIConnection when configured at the component level

James Netherton created CAMEL-16764:
---------------------------------------

             Summary: Box component does not reuse BoxAPIConnection when configured at the component level
                 Key: CAMEL-16764
                 URL: https://issues.apache.org/jira/browse/CAMEL-16764
             Project: Camel
          Issue Type: Bug
          Components: camel-box
    Affects Versions: 3.11.0
            Reporter: James Netherton
            Assignee: James Netherton
             Fix For: 3.11.1, 3.12.0


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]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)