James Netherton created CAMEL-23553:
---------------------------------------

             Summary: camel-platform-http-vertx: VertxPlatformHttpConsumer 
fails to resolve RestRegistry
                 Key: CAMEL-23553
                 URL: https://issues.apache.org/jira/browse/CAMEL-23553
             Project: Camel
          Issue Type: Bug
          Components: camel-platform-http-vertx
            Reporter: James Netherton


VertxPlatformHttpConsumer has this logic to resolve the RestRegistry:

[https://github.com/apache/camel/blob/23db0da261d68bb4ae0175d9b6b07df2f7ee83b6/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java#L119-L121]

The if expression always evaluates to false because the RestRegistry is added 
as a lazy context plugin:

[https://github.com/apache/camel/blob/23db0da261d68bb4ae0175d9b6b07df2f7ee83b6/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java#L413]

Lazy plugins are considered as 'not in use' within isContextPluginInUse:

[https://github.com/apache/camel/blob/23db0da261d68bb4ae0175d9b6b07df2f7ee83b6/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultContextPluginManager.java#L49-L54]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to