ppalaga commented on issue #5474:
URL: https://github.com/apache/camel-quarkus/issues/5474#issuecomment-1786063145

   Thanks for the report @brianmolinaspring!
   I think the behavior would be the same in JVM mode. Your 
getCurrentDateTime() method is simply called only once on route creation. 
   To reach what you want, you might use something like the following:
   
   ```
   .log("${bean:myBean.getCurrentDateTime()}")
   
   @Named("myBean")
   @RegisterForReflection
   class MyBean {
     private Timestamp getCurrentDateTime() {
        LocalDateTime now = LocalDateTime.now();
         return Timestamp.valueOf(now);
     }
   }


-- 
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