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
camelContext is not supported in XML DSL routedefinition #731
Comments
I tried with separating the rest fragments out in its standalone xml.
however the
|
@ewcchan you cannot use the "127.0.0.1" as the address for the restlet to listen if you deploy the serivce into K8s unless you use servicemesh. Please change it to "0.0.0.0", then you can access the service with the pod IP. |
I tried with 0.0.0.0 and it does not work neither...
I dont see the port and host in the restlet output |
It looks like the restConfiguration part is not loaded yet. For the Rest routes, there are RestConfigurationDefinition, RestSecuritiesDefinition need to be loaded. Current XmlLoader doesn't support it. As the spring boot runtime support is removed from camel-k-runtime, we need to figure out how to provide fully support of XML DSL. |
For what IO can see, camel's |
Thanks @lburgazzoli and @WillemJiang, with
|
I found that camel-k JVM runtime setup the RestConfiguration through RuntimeSupport.configureRest() |
@ewcchan can we close this ? |
the following XML content does not work and no route is detected
I noticed in the the output it states that
**[1] 2019-06-07 20:31:59.387 DEBUG [main] XmlLoader - Unable to load RoutesDefinition: unexpected element (uri:"http://camel.apache.org/schema/spring", local:"camelContext"). **
How to probably define both rest configurations alongside routes? Should camelContext be supported?
full output
The text was updated successfully, but these errors were encountered: