[
https://issues.apache.org/jira/browse/CAMEL-12562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16506597#comment-16506597
]
Luca Burgazzoli commented on CAMEL-12562:
-----------------------------------------
I've created this project to try to reproduce this issue:
https://github.com/lburgazzoli/camel-boot-playground
but it seems to work as expected.
When dumping the auto configuration report, I see the following camel-dns
related beans properly configured:
{code}
DnsCloudAutoConfiguration matched:
- camel.cloud.dns.service-discovery enabled
(DnsCloudAutoConfiguration.Condition)
- @ConditionalOnBean (types:
org.apache.camel.spring.boot.CamelAutoConfiguration; SearchStrategy: all) found
bean 'org.apache.camel.spring.boot.CamelAutoConfiguration' (OnBeanCondition)
DnsCloudAutoConfiguration#configureServiceDiscoveryFactory matched:
- @ConditionalOnClass found required class
'org.apache.camel.CamelContext'; @ConditionalOnMissingClass did not find
unwanted class (OnClassCondition)
DnsComponentAutoConfiguration matched:
- camel.component.dns enabled
(DnsComponentAutoConfiguration.GroupConditions)
- AllNestedConditions 2 matched 0 did not; NestedCondition on
ConditionalOnCamelContextAndAutoConfigurationBeans.OnCamelAutoConfiguration
@ConditionalOnBean (types: org.apache.camel.spring.boot.CamelAutoConfiguration;
SearchStrategy: all) found bean
'org.apache.camel.spring.boot.CamelAutoConfiguration'; NestedCondition on
ConditionalOnCamelContextAndAutoConfigurationBeans.OnCamelContext
@ConditionalOnBean (types: org.apache.camel.CamelContext; SearchStrategy: all)
found bean 'camelContext' (ConditionalOnCamelContextAndAutoConfigurationBeans)
DnsComponentAutoConfiguration#configureDnsComponent matched:
- @ConditionalOnMissingBean (types:
org.apache.camel.component.dns.DnsComponent; SearchStrategy: all) did not find
any beans (OnBeanCondition)
{code}
My configuration looks like:
{code}
camel:
springboot:
main-run-controller: true
name: CamelBoot
cloud:
dns:
service-discovery:
enabled: true
domain: google.com
proto: _tcp
{code}
And when running I get errors related to the lack of the http4 component (which
is the default component used to invoke services) but the service resolution
works:
{code}
Failed to resolve endpoint: http4://alt2.xmpp-server.l.google.com:5269 due to:
No component found with scheme: http4
{code}
> camel-dns: starter ignores serviceCall EIP configuration
> --------------------------------------------------------
>
> Key: CAMEL-12562
> URL: https://issues.apache.org/jira/browse/CAMEL-12562
> Project: Camel
> Issue Type: Bug
> Components: camel-dns
> Reporter: Nicola Ferraro
> Assignee: Luca Burgazzoli
> Priority: Major
> Fix For: 2.21.2, 2.22.0
>
> Attachments: report.log
>
>
> When setting:
> {code:java}
> camel.cloud.dns.service-discovery.enabled=true
> camel.cloud.dns.service-discovery.domain=svc.cluster.local
> camel.cloud.dns.service-discovery.proto=workshop{code}
> The lookup is not executed with the dns provider.
>
> Instead, if I set it in the route:
> {code:java}
> .serviceCall().name("inventory/api/purchases").dnsServiceDiscovery().domain("svc.cluster.local").proto("workshop");{code}
>
> It at least tries to do the lookup with the DNS provider (although it fails
> to find the service on Kubernetes).
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)