davsclaus commented on a change in pull request #38: URL: https://github.com/apache/camel-examples/pull/38#discussion_r584052759
########## File path: examples/main/src/main/java/org/apache/camel/example/StandaloneCamel.java ########## @@ -34,29 +34,30 @@ private StandaloneCamel() { public static void main(String[] args) throws Exception { // create a new CamelContext - CamelContext camelContext = new DefaultCamelContext(); + try (CamelContext camelContext = new DefaultCamelContext()) { Review comment: Oh we should avoid this, can you keep the code as before. ---------------------------------------------------------------- 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