ewcchan commented on issue #731: camelContext is not supported in XML DSL routedefinition URL: https://github.com/apache/camel-k/issues/731#issuecomment-500664592 I tried with 0.0.0.0 and it does not work neither... ``` ubuntu@eugene-kamel-dev:~/repos/demos/camel-atlasmap-demo3$ cat rests.xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <rests xmlns="http://camel.apache.org/schema/spring"> <restConfiguration component="restlet" port="8081" host="0.0.0.0"/> <rest path="/api/demo2"> <post> <to uri="direct:handleRestRequest"/> </post> </rest> </rests> ubuntu@eugene-kamel-dev:~/repos/demos/camel-atlasmap-demo3$ kamel run --name=demo3-atlasmap --resource atlasmapping-UI.795711.json --dependency mvn:io.atlasmap/camel-atlasmap:1.40.0-alpha2 --dependency camel-restlet --logging-level org.apache.camel.k=DEBUG --dev rests.xml integration "demo3-atlasmap" created integration "demo3-atlasmap" in phase Building Context integration "demo3-atlasmap" in phase Deploying integration "demo3-atlasmap" in phase Running [1] Monitoring pod demo3-atlasmap-78b6c69f4-vs9lt[1] Starting the Java application using /opt/run-java/run-java.sh ... [1] exec java -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:+ExitOnOutOfMemoryError -cp ./resources:/etc/camel/conf:/etc/camel/resources:/etc/camel/resources/i-resource-000:/etc/camel/sources/i-source-000:dependencies/com.fasterxml.jackson.core.jackson-annotations-2.8.11.jar:dependencies/com.fasterxml.jackson.core.jackson-core-2.8.11.jar:dependencies/com.fasterxml.jackson.core.jackson-databind-2.8.11.3.jar:dependencies/com.fasterxml.jackson.module.jackson-module-jsonSchema-2.8.11.jar:dependencies/com.sun.xml.bind.jaxb-core-2.3.0.jar:dependencies/com.sun.xml.bind.jaxb-impl-2.3.0.jar:dependencies/com.sun.xsom.xsom-20140925.jar:dependencies/commons-codec.commons-codec-1.5.jar:dependencies/commons-io.commons-io-2.6.jar:dependencies/commons-logging.commons-logging-1.1.3.jar:dependencies/io.atlasmap.atlas-api-1.40.0-alpha2.jar:dependencies/io.atlasmap.atlas-core-1.40.0-alpha2-tests.jar:dependencies/io.atlasmap.atlas-core-1.40.0-alpha2.jar:dependencies/io.atlasmap.atlas-expression-1.40.0-alpha2.jar:dependencies/io.atlasmap.atlas-java-core-1.40.0-alpha2.jar:dependencies/io.atlasmap.atlas-java-model-1.40.0-alpha2.jar:dependencies/io.atlasmap.atlas-java-module-1.40.0-alpha2.jar:dependencies/io.atlasmap.atlas-json-core-1.40.0-alpha2.jar:dependencies/io.atlasmap.atlas-json-model-1.40.0-alpha2.jar:dependencies/io.atlasmap.atlas-json-module-1.40.0-alpha2.jar:dependencies/io.atlasmap.atlas-model-1.40.0-alpha2.jar:dependencies/io.atlasmap.atlas-xml-core-1.40.0-alpha2.jar:dependencies/io.atlasmap.atlas-xml-model-1.40.0-alpha2.jar:dependencies/io.atlasmap.atlas-xml-module-1.40.0-alpha2.jar:dependencies/io.atlasmap.camel-atlasmap-1.40.0-alpha2.jar:dependencies/javax.servlet.javax.servlet-api-3.1.0.jar:dependencies/javax.validation.validation-api-1.1.0.Final.jar:dependencies/net.jcip.jcip-annotations-1.0.jar:dependencies/org.apache.camel.camel-core-2.23.2.jar:dependencies/org.apache.camel.camel-http-common-2.23.2.jar:dependencies/org.apache.camel.camel-restlet-2.23.2.jar:dependencies/org.apache.camel.k.camel-k-adapter-camel-2-0.3.2.jar:dependencies/org.apache.camel.k.camel-k-runtime-core-0.3.2.jar:dependencies/org.apache.camel.k.camel-k-runtime-jvm-0.3.2.jar:dependencies/org.apache.commons.commons-lang3-3.8.1.jar:dependencies/org.apache.httpcomponents.httpclient-4.3.2.jar:dependencies/org.apache.httpcomponents.httpcore-4.3.1.jar:dependencies/org.apache.httpcomponents.httpmime-4.3.jar:dependencies/org.apache.james.apache-mime4j-core-0.7.2.jar:dependencies/org.apache.logging.log4j.log4j-api-2.11.2.jar:dependencies/org.apache.logging.log4j.log4j-core-2.11.2.jar:dependencies/org.apache.logging.log4j.log4j-slf4j-impl-2.11.2.jar:dependencies/org.jooq.joor-java-8-0.9.10.jar:dependencies/org.restlet.jee.org.restlet-2.3.12.jar:dependencies/org.restlet.jee.org.restlet.ext.httpclient-2.3.12.jar:dependencies/org.slf4j.slf4j-api-1.7.25.jar:dependencies/relaxngDatatype.relaxngDatatype-20020414.jar org.apache.camel.k.jvm.Application [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 01:52:35.542 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.ContextConfigurer@1d9b7cce [1] 2019-06-11 01:52:35.551 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.ContextLifecycleConfigurer@661972b0 [1] 2019-06-11 01:52:35.553 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RoutesConfigurer@2e005c4b [1] 2019-06-11 01:52:35.554 INFO [main] ApplicationRuntime - Add listener: org.apache.camel.k.listener.RoutesDumper@6356695f [1] 2019-06-11 01:52:35.602 INFO [main] RoutesConfigurer - Loading routes from: file:/etc/camel/sources/i-source-000/rests.xml?language=xml [1] 2019-06-11 01:52:35.681 INFO [main] DefaultTypeConverter - Type converters loaded (core: 195, classpath: 10) [1] 2019-06-11 01:52:36.855 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 01:52:36.877 INFO [main] DefaultCamelContext - Apache Camel 2.23.2 (CamelContext: camel-k) is starting [1] 2019-06-11 01:52:36.881 INFO [main] ManagedManagementStrategy - JMX is enabled [1] 2019-06-11 01:52:37.107 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] 2019-06-11 01:52:37.274 INFO [main] DefaultCamelContext - Route: route1 started and consuming from: restlet:///api/demo2?restletMethods=POST [1] 2019-06-11 01:52:37.275 INFO [main] DefaultCamelContext - Total 1 routes, of which 1 are started [1] 2019-06-11 01:52:37.276 INFO [main] DefaultCamelContext - Apache Camel 2.23.2 (CamelContext: camel-k) started in 0.398 seconds [1] 2019-06-11 01:52:37.511 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://post:/api/demo2?routeId=route1"/> [1] <to id="to1" uri="direct:handleRestRequest"/> [1] </route> [1] </routes> [1] [1] 2019-06-11 01:52:37.666 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] <post id="verb1" routeId="route1"> [1] <to id="to1" uri="direct:handleRestRequest"/> [1] </post> [1] </rest> [1] </rests> [1] ``` I dont see the port and host in the restlet output `[1] 2019-06-11 01:52:37.274 INFO [main] DefaultCamelContext - Route: route1 started and consuming from: restlet:///api/demo2?restletMethods=POST`
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
