Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add camel-k-quarkus example #1082

Closed
davsclaus opened this issue Nov 23, 2019 · 6 comments
Closed

Add camel-k-quarkus example #1082

davsclaus opened this issue Nov 23, 2019 · 6 comments

Comments

@davsclaus
Copy link
Contributor

Add a sub folder named quarkus and add an example and show how to run camel-quarkus route with quarkus extensions etc.

@davsclaus
Copy link
Contributor Author

@lburgazzoli I have been trying to run Sample.java as a camel-quarkus application. Not sure how its supposed to work (or will be intended to work).

I have tried with both

kamel run -t quarkus.camel-quarkus-version=0.3.1 -t quarkus.quarkus-version=0.27.0 Sample.java

kamel run -t quarkus.camel-quarkus-version=0.4.0 -t quarkus.quarkus-version=1.0.0.CR1 Sample.java

But they start up as regular camel-main apps without quarkus

Also we should IMHO make it easier to say you want to use quarkus, maybe just -t quarkus is sufficient without having to specify exact versions, and then kamel should auto-detect latest camel-quarkus-catalog we have and use the versions from there etc.

@lburgazzoli
Copy link
Contributor

/cc @astefanutti

@astefanutti
Copy link
Member

@davsclaus you should be able to run the integration using Quarkus as runtime with:

$ kamel run -t quarkus.enabled=true <integration>

Then the versions are inferred.

@davsclaus
Copy link
Contributor Author

Thanks it works

│ 2019-11-23 14:59:33,858 INFO  [org.apa.cam.qua.cor.FastCamelContext] (main) Total 1 routes, of which 1 are started                                                                           │
│ 2019-11-23 14:59:33,861 INFO  [org.apa.cam.qua.cor.FastCamelContext] (main) Apache Camel 3.0.0-RC3 (CamelContext: camel-1) started in 0.285 seconds                                          │
│ 2019-11-23 14:59:33,863 INFO  [org.apa.cam.k.cor.qua.RuntimeListenerAdapter] (main) Listener org.apache.camel.k.listener.RoutesDumper@a77614d executed in phase Started                      │
│ 2019-11-23 14:59:33,864 INFO  [io.quarkus] (main) camel-k-integration 1.0.0-M4 (running on Quarkus 0.27.0) started in 1.830s.                                                                │
│ 2019-11-23 14:59:33,864 INFO  [io.quarkus] (main) Profile prod activated.                                                                                                                    │
│ 2019-11-23 14:59:33,865 INFO  [io.quarkus] (main) Installed features: [camel-core, camel-k-loader-xml, camel-k-runtime-core, camel-k-runtime-quarkus, camel-log, camel-support-common, camel │
│ support-xml, camel-timer, camel-xml, cdi[]                                                                                                                                                   │
│ 2019-11-23 14:59:34,890 INFO  [info] (Camel (camel-1) thread #1 - timer://hello) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World!!!]                                   │
│ 2019-11-23 14:59:37,862 INFO  [info] (Camel (camel-1) thread #1 - timer://hello) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World!!!]                                   │
│ 2019-11-23 14:59:40,860 INFO  [info] (Camel (camel-1) thread #1 - timer://hello) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World!!!]                                   │
│ 2019-11-23 14:59:43,859 INFO  [info] (Camel (camel-1) thread #1 - timer://hello) Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World!!!]

The current docs was not clear on this, but @nicolaferraro just merged a PR so docs will be up to date in the future

@astefanutti
Copy link
Member

Now that Quarkus is the default runtime and will become the only runtime, would it make sense to close this?

@davsclaus
Copy link
Contributor Author

yeah sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants