You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "Akvel (via GitHub)" <gi...@apache.org> on 2025/02/12 10:35:39 UTC
[I] camel-spring-boot-upgrade-recipes not upgrade application.yaml [camel-upgrade-recipes]
Akvel opened a new issue, #25:
URL: https://github.com/apache/camel-upgrade-recipes/issues/25
When Camel runs on Spring Boot, it initializes many properties from application.yaml (Spring YAML configuration).
In CamelSpringBootMigrationRecipe, properties migration is not implemented, which causes many problems when I do this part manually.
For example:
1. https://camel.apache.org/manual/camel-4-migration-guide.html#_camel_http
> `There are 4 different timeouts (connectionRequestTimeout, connectTimeout, soTimeout and responseTimeout) instead of initially 3 (connectionRequestTimeout, connectTimeout and socketTimeout) `
2. https://camel.apache.org/manual/camel-4x-upgrade-guide-4_4.html#_camel_main
> The route controller configuration has been moved from general main to its own group. All keys started with camel.main.routesController should be renamed to camel.routecontroller., for example camel.main.routeControllerBackOffDelay should be renamed to camel.routecontroller.backOffDelay. And the option camel.main.routeControllerSuperviseEnabled has been renamed to camel.routecontroller.enabled.
etc
It would be really cool to support properties conversion in CamelSpringBootMigrationRecipe as well.
Please implement this feature if possible.
--
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
Re: [I] camel-spring-boot-upgrade-recipes not upgrade application.yaml [camel-upgrade-recipes]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway commented on issue #25:
URL: https://github.com/apache/camel-upgrade-recipes/issues/25#issuecomment-2674584871
The Camel Spring Boot recipe applied to an example (application.properties diff)
```
# the name of Camel
-camel.springboot.name = SampleSupervisingRouteController
+camel.main.name = SampleSupervisingRouteController
# route controller configuration
-camel.springboot.routeControllerSuperviseEnabled = true
-camel.springboot.routeControllerInitialDelay = 5000
-camel.springboot.routeControllerBackoffDelay = 5000
-camel.springboot.routeControllerBackoffMaxAttempts = 10
+camel.routecontroller.enabled = true
+camel.routecontroller.initialDelay = 5000
+camel.routecontroller.backOffDelay = 5000
+camel.routecontroller.backOffMaxAttempts = 10
```
The command is
`mvn --no-transfer-progress org.openrewrite.maven:rewrite-maven-plugin:6.0.4:run -Drewrite.recipeArtifactCoordinates=org.apache.camel.upgrade:camel-spring-boot-upgrade-recipes:4.11.0-SNAPSHOT -Drewrite.activeRecipes=org.apache.camel.upgrade.CamelSpringBootMigrationRecipe`
--
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
Re: [I] camel-spring-boot-upgrade-recipes not upgrade application.yaml [camel-upgrade-recipes]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway closed issue #25: camel-spring-boot-upgrade-recipes not upgrade application.yaml
URL: https://github.com/apache/camel-upgrade-recipes/issues/25
--
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