You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "ajitghotane (via GitHub)" <gi...@apache.org> on 2023/05/16 11:18:15 UTC

[GitHub] [camel-k] ajitghotane opened a new issue, #4376: camel-k with spring config

ajitghotane opened a new issue, #4376:
URL: https://github.com/apache/camel-k/issues/4376

   hello,
      import org.apache.camel.builder.RouteBuilder;
   //import org.apache.camel.model.rest.RestBindingMode;
   //import javax.enterprise.context.ApplicationScoped;
   import io.quarkus.runtime.Quarkus;
   
   public class Main extends RouteBuilder
   {
       public void configure() {
           //restConfiguration().bindingMode(RestBindingMode.json);
          /* from("direct:start") 
           .to("camel-spring-cloud:config-client?uri=http://localhost:8888/application&profile=dev") 
           .to("log:info");
           */
           from("quarkus-spring-config:Welcome")
           .log("${body}");
   
       }
   } 
   
   by this code I am try to fetch the config from spring cloud config server by executing following command
   
   kamel run Config.java --property file:./application.properties --dev -d mvn:io.quarkus:quarkus-camel-quarkus:2.16.0 -d mvn:io.quarkus:quarkus-spring-boot-starter:2.8.0.Final -d mvn:io.quarkus:quarkus-spring-cloud-config-client -d mvn:io.quarkus:quarkus-resteasy -d mvn:io.quarkus:quarkus-camel-core -d mvn:quarkus-spring-config 
   
   but i am getting this
   
   <img width="960" alt="image" src="https://github.com/apache/camel-k/assets/130899147/89523d55-3a4c-4f5c-b3f3-9ee8c7a4b8d7">
   
   i am using quarks dependencies
   and have the demo example to fetch the config from spring cloud config server  please share with me 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] ajitghotane commented on issue #4376: camel-k with spring config

Posted by "ajitghotane (via GitHub)" <gi...@apache.org>.
ajitghotane commented on issue #4376:
URL: https://github.com/apache/camel-k/issues/4376#issuecomment-1550771708

   any update on this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4376: camel-k with spring config

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4376:
URL: https://github.com/apache/camel-k/issues/4376#issuecomment-1549629634

   The `camel-quarkus-consul` component and relative dependencies may be working and it should automatically resolved by Camel K when you use `consul:apiEndpoint` in your routes. If you use `spring-cloud-config:xyz` then, the operator will resolve to `camel-quarkus-spring-config` which is not supported.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] github-actions[bot] closed issue #4376: camel-k with spring config

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #4376: camel-k with spring config 
URL: https://github.com/apache/camel-k/issues/4376


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] github-actions[bot] commented on issue #4376: camel-k with spring config

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4376:
URL: https://github.com/apache/camel-k/issues/4376#issuecomment-1679789108

   This issue has been automatically marked as stale due to 90 days of inactivity.
   It will be closed if no further activity occurs within 15 days.
   If you think that’s incorrect or the issue should never stale, please simply write any comment.
   Thanks for your contributions!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4376: camel-k with spring config

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4376:
URL: https://github.com/apache/camel-k/issues/4376#issuecomment-1549482586

   As stated in the error condition, the component is not supported in Camel Quarkus catalog. This is the list of supported components: https://camel.apache.org/camel-quarkus/3.0.x/reference/components.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] oscerd commented on issue #4376: camel-k with spring config

Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd commented on issue #4376:
URL: https://github.com/apache/camel-k/issues/4376#issuecomment-1550914147

   I think you first need to understand the difference between Camel and Spring.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4376: camel-k with spring config

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4376:
URL: https://github.com/apache/camel-k/issues/4376#issuecomment-1550910746

   I thought I was clear with my previous comment. The problem of your route is the presence of `.to("quarkus-spring-config:application?springCloudConfigUrl=http://localhost:8888/")` which won't work in Camel K because the `quarkus-spring-config` endpoint and related components are not supported in Camel Quarkus.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] ajitghotane commented on issue #4376: camel-k with spring config

Posted by "ajitghotane (via GitHub)" <gi...@apache.org>.
ajitghotane commented on issue #4376:
URL: https://github.com/apache/camel-k/issues/4376#issuecomment-1551128522

   Any another way to do this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] ajitghotane commented on issue #4376: camel-k with spring config

Posted by "ajitghotane (via GitHub)" <gi...@apache.org>.
ajitghotane commented on issue #4376:
URL: https://github.com/apache/camel-k/issues/4376#issuecomment-1549655584

   import org.apache.camel.builder.RouteBuilder;
   
   public class MyCamelRoute extends RouteBuilder {
       @Override
       public void configure() throws Exception {
           from("consul:Welcome/application/dev")
               .to("quarkus-spring-config:application?springCloudConfigUrl=http://localhost:8888")
               .to("log:configurations");
       }
   }
   this is the code 
   and this is the command  **kamel run MyCamelRoute.java --dev -d mvn:io.quarkus:quarkus-camel-quarkus:2.16.0 -d mvn:io.quarkus:quarkus-camel-core -d camel:consul**
   but the issue is same


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] ajitghotane commented on issue #4376: camel-k with spring config

Posted by "ajitghotane (via GitHub)" <gi...@apache.org>.
ajitghotane commented on issue #4376:
URL: https://github.com/apache/camel-k/issues/4376#issuecomment-1549611091

   I tried with this rg.apache.camel.quarkus:camel-quarkus-consul dependency  which is in supported components and also this dependency support the spring cloud then also I am getting the error
   <img width="938" alt="image" src="https://github.com/apache/camel-k/assets/130899147/238b9c96-f85e-49ac-97ee-d0aec91f2228">
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org