-
Notifications
You must be signed in to change notification settings - Fork 350
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
Kotlin documentation incorrect for kotlin DSL #1426
Comments
Actually I'm not sure how to get the registry example working, as that doesn't seem to be defined under |
That documentation need to be updated :) The registry has been removed in favour of a "bean dsl": beans {
bean<org.apache.commons.dbcp2.BasicDataSource>("dataSource") {
driverClassName = "org.h2.Driver"
url = "jdbc:h2:mem:camel"
username = "sa"
password = ""
}
bean("filterStrategy") {
org.apache.camel.support.DefaultHeaderFilterStrategy()
}
processor("myProcessor") {
it.getIn().body = "Hello"
}
predicate("myPredicate") {
false
}
} |
Great, Thanks |
Fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The kotlin documentation here https://camel.apache.org/camel-k/latest/languages/kotlin.html is incorrect for the kotlin dsl (registry and component configurations).
it says
context
when it should saycamel
should be
The text was updated successfully, but these errors were encountered: