[ 
https://issues.apache.org/jira/browse/CAMEL-18546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17849680#comment-17849680
 ] 

Luca Burgazzoli commented on CAMEL-18546:
-----------------------------------------

Just for reference, in the past we had something similar:
- [https://camel.apache.org/components/4.4.x/service-component.html]
- [https://github.com/apache/camel/tree/main/components/camel-service]

 

So there is a 
[ServiceRegistry|https://github.com/apache/camel/blob/main/core/camel-api/src/main/java/org/apache/camel/cloud/ServiceRegistry.java]
 where services can be registered. 
Not 100% the same but wonder if the API can be reused and eventually the old 
camle-service deprecated/removed.

> camel-core - HostedService - To mark a consumer as a Camel hosted service
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-18546
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18546
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.7.0
>
>
> A few components hosts a service exclusive in Camel such as HTTP/TCP based
> from cxf
> from platform-http
> from servlet
> from netty (not in client mode)
> from mina
> from mllp
> from jetty
> There may be a few others.
> Its not the same as
> from file
> from jms
> from kafka
> As these are camel consumer that reacts on events from another "service", eg 
> JMS broker or Kafka broker.
> If we have an API/SPI to mark a consumer as being a HostedConsumer (or come 
> up with a better name). Then we can collect service information, such as
>  - name
>  - protocol
>  - ur to call the service
>  - additional metadata
>  - api schema (optional)
> Then we can make camel-core able to detect all its consumers that are hosted, 
> and be able to expose this so its easier for tooling etc to gather a list of 
> services.
> There is something related to this in RestRegistry in camel-core but that was 
> for RESTful hosted service only.



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

Reply via email to