ewcchan commented on issue #731: camelContext is not supported in XML DSL routedefinition URL: https://github.com/apache/camel-k/issues/731#issuecomment-500914248 Thanks @lburgazzoli and @WillemJiang, with `--property camel.rest.port=8081 --property camel.rest.host=0.0.0.` The restlet is correctly loaded with the request configuration setup. ``` [1] OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N [1] 2019-06-11 16:07:58.578 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.ContextConfigurer@3daa422a [1] 2019-06-11 16:07:58.587 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.ContextLifecycleConfigurer@50eac852 [1] 2019-06-11 16:07:58.589 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RoutesConfigurer@6a192cfe [1] 2019-06-11 16:07:58.590 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RoutesDumper@20deea7f [1] 2019-06-11 16:07:58.651 INFO [main] RoutesConfigurer - Loading routes from: file:/etc/camel/sources/i-source-000/rests.xml?language=xml [1] 2019-06-11 16:07:58.736 INFO [main] DefaultTypeConverter - Type converters loaded (core: 195, classpath: 10) [1] 2019-06-11 16:07:59.952 DEBUG [main] XmlLoader - Loaded 1 rests from Source{location='file:/etc/camel/sources/i-source-000/rests.xml', language=xml, compressed=false} [1] 2019-06-11 16:07:59.965 INFO [main] DefaultCamelContext - Apache Camel 2.23.2 (CamelContext: camel-k) is starting [1] 2019-06-11 16:07:59.970 INFO [main] ManagedManagementStrategy - JMX is enabled [1] 2019-06-11 16:08:00.235 INFO [main] DefaultCamelContext - StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html [1] Jun 11, 2019 4:08:00 PM org.restlet.engine.connector.NetServerHelper start [1] INFO: Starting the internal [HTTP/1.1] server on port 8081 [1] 2019-06-11 16:08:00.428 INFO [main] DefaultCamelContext - Route: route1 started and consuming from: restlet://http://0.0.0.0:8081/api/demo2?restletMethods=GET [1] 2019-06-11 16:08:00.430 INFO [main] DefaultCamelContext - Total 1 routes, of which 1 are started [1] 2019-06-11 16:08:00.431 INFO [main] DefaultCamelContext - Apache Camel 2.23.2 (CamelContext: camel-k) started in 0.465 seconds [1] 2019-06-11 16:08:00.665 DEBUG [main] RoutesDumper - Routes: [1] <?xml version="1.0" encoding="UTF-8" standalone="yes"?> [1] <routes xmlns="http://camel.apache.org/schema/spring"> [1] <route customId="false" id="route1" rest="true"> [1] <from uri="rest://get:/api/demo2?routeId=route1"/> [1] <to id="to1" uri="direct:handleRestRequest"/> [1] </route> [1] </routes> [1] [1] 2019-06-11 16:08:00.799 DEBUG [main] RoutesDumper - Rests: [1] <?xml version="1.0" encoding="UTF-8" standalone="yes"?> [1] <rests xmlns="http://camel.apache.org/schema/spring"> [1] <rest path="/api/demo2"> [1] <get id="verb1" routeId="route1"> [1] <to id="to1" uri="direct:handleRestRequest"/> [1] </get> [1] </rest> [1] </rests> [1] [1] Jun 11, 2019 4:11:00 PM org.restlet.engine.log.LogFilter afterHandle [1] INFO: 2019-06-11 16:11:00 127.0.0.1 - 0.0.0.0 8081 GET /api/demo3 - 404 439 015 http://0.0.0.0:8081 curl/7.29.0 - ^[[A[1] Jun 11, 2019 4:11:16 PM org.restlet.engine.log.LogFilter afterHandle [1] INFO: 2019-06-11 16:11:16 127.0.0.1 - 0.0.0.0 8081 GET /api/demo3 - 404 439 01 http://0.0.0.0:8081 curl/7.29.0 - ```
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services