squakez commented on issue #4126:
URL: https://github.com/apache/camel-k/issues/4126#issuecomment-1479404791

   > As soon as the Java code changes, you need to rebuild it since it is 
included in the native image that is why using the generic file approach to 
keep the exact same code, is the way to go.
   
   Okey, then we need to force such a rebuild, otherwise the operator will try 
to reuse the previous image. However, I wonder how it was working the image 
reuse in 1.11 version for yaml for instance. If you try to run natively:
   
   ```
   - from:
       uri: "timer:yaml"
       parameters:
         period: "1000"
       steps:
         - setBody:
             simple: "resource:file:/etc/camel/resources/test.txt"
         - to: "log:info"
   ```
   
   and then you try:
   
   ```
   - from:
       uri: "timer:yaml"
       parameters:
         period: "1000"
       steps:
         - setBody:
             simple: "resource:file:/etc/camel/resources/test2.txt"
         - to: "log:info"
   ```
   The second integration would work correctly. I am testing this same scenario 
in 1.12. I understand this may not work with Java, and in such case we need to 
force the rebuild.


-- 
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-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to