I recently installed Camel-K for testing purposes. This was my
installation command:

kamel install \
  --force \
  --build-publish-strategy=Spectrum \
  --olm=false \
  -n platform \
  --operator-resources requests.cpu=100m \
  --operator-resources limits.cpu=200m \
  --operator-resources requests.memory=256Mi \
  --operator-resources limits.memory=1024Mi \
  --registry docker.io \
  --organization $dockerorganization \
  --registry-secret camel-k-registry-secret \
  --maven-repository $maven-url \
  --monitoring=true \
  --wait

After that I started coding some java routes for testing...

During my tests I was using the cron component, but at some moment I
have changed my java route, commenting the 'from("cron:.....")' to
start using a rabbitmq queue.

Note, I "commented" the cron code and appended a new "from" expression...

I tried multiple times to run this change (kamel run) without success.
Each try camel-k continues to run the route using the cron expression.
I also tried to reset the operator (kamel reset), but it continues to
run the cron instead of use the rabbitmq source.

After that I think: I will try to DELETE that commented lines that
define the cron from the java source file.

And tried to run it again, and NOW it ran correctly.

Can someone explain what was occuring? The camel-k java
compiler/interpreter evaluates comments? This was a little bizarre!

Reply via email to