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

Upgrade to Camel Quarkus 2.3.0, make the examples runnable against alternative BOMs #55

Merged
merged 6 commits into from
Oct 5, 2021

Conversation

ppalaga
Copy link
Contributor

@ppalaga ppalaga commented Oct 5, 2021

ppalaga and others added 4 commits August 31, 2021 17:18
* example(jdbc-datastore): #3056 Adding new simple example

* Removing JPA and fixing docs

* Adding a new group for jdbc-datasource

* Adding missing license header

* Updating docs

* Re-introducing quarkus-health microprofile

* Fix README numbering and remove dangling files

Co-authored-by: James Netherton <[email protected]>
@ppalaga ppalaga force-pushed the 211005-alt-boms branch 2 times, most recently from 59287d8 to 8e83d94 Compare October 5, 2021 12:40
as long as you play with the example code in dev mode (a.k.a. `mvn quarkus:dev` - read more [here](https://quarkus.io/guides/getting-started#development-mode))
or as long as you only run the supplied tests (`mvn test`).
In those situations, Quarkus tooling starts a Redpanda image for you via [Quarkus Dev Services](https://quarkus.io/guides/kafka-dev-services)
and it also configures the application so that you do not need touch anything in `application.properties`.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reworded this a little bit. @jamesnetherton or @aldettinger could you please review, whether it makes sense?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me.

@@ -23,8 +23,7 @@ timer.period = 10000
timer.delay = 10000

# Kafka instance without Authentication
# Passing ${kafka.bootstrap.servers} is a workaround for https://github.com/apache/camel-quarkus/issues/2939
camel.component.kafka.brokers=${brokers:${kafka.bootstrap.servers}}
#camel.component.kafka.brokers=${brokers}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apache/camel-quarkus#2939 not being an issue anymore, I hope commenting the line back and removing ${kafka.bootstrap.servers} makes up a valid suggestion for end users?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's safe. It's how the previous impl was configured.

@ppalaga
Copy link
Contributor Author

ppalaga commented Oct 5, 2021

Hm... the Kafka example fails in native mode. Isn't the dev service magic supposed to work there as well, @jamesnetherton ?

@jamesnetherton
Copy link
Contributor

Hm... the Kafka example fails in native mode. Isn't the dev service magic supposed to work there as well, @jamesnetherton ?

Yes, it should. Maybe restore the workaround for now and I can investigate further since I'm working in that area at the moment anyway.

@ppalaga
Copy link
Contributor Author

ppalaga commented Oct 5, 2021

Hm... the Kafka example fails in native mode. Isn't the dev service magic supposed to work there as well, @jamesnetherton ?

Yes, it should. Maybe restore the workaround for now and I can investigate further since I'm working in that area at the moment anyway.

camel.component.kafka.brokers=${brokers:${kafka.bootstrap.servers}} helps in native mode, but fails in JVM mode with a message saying something like kafka.bootstrap.servers is not defined. Let me file an issue and disable the native test.

@ppalaga ppalaga merged commit 612b3d8 into apache:main Oct 5, 2021
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

Successfully merging this pull request may close these issues.

Unify package names for the for the test in camel-quarkus-examples
4 participants