{cq-description}
Tip
|
Check the Camel Quarkus User guide for prerequisites and other general information. |
$ mvn clean compile quarkus:dev
The above command compiles the project, starts the application and lets the Quarkus tooling watch for changes in your workspace. Any modifications in your project will automatically take effect in the running application.
Tip
|
Please refer to the Development mode section of Camel Quarkus User guide for more details. |
Then look at the log output in the console. There are 2 log messages. One generated from a route defined using the Java DSL in class TimerRoute
and
another defined using the XML DSL in src/main/resources/routes/my-routes.xml
.
As we run the example in Quarkus Dev Mode, you can edit the source code and have live updates.
For example, try to change the default greeting message in GreetingBean
to Bye World
.
The log message and the period at which the timer fires can be changed by modifying configuration properties timer.period
and
greeting.message
in application.properties
. You can also override the default values via the command line with JVM arguments
-Dtimer.period=5000 -Dgreeting.message="My Custom Greeting"
Once you are done with developing you may want to package and run the application.
Tip
|
Find more details about the JVM mode and Native mode in the Package and run section of Camel Quarkus User guide |
$ mvn clean package
$ java -jar target/quarkus-app/quarkus-run.jar
...
[io.quarkus] (main) camel-quarkus-examples-... started in 1.163s.
This projects integrates some depdendencies from https://github.com/oehf/ipf to see if they work with Camel Quarkus. It was necessary to add a few dependencie exclusions to remove camel depedenceies that are not compatible with Camel Quarkus.
This code is not tested yet but it does compile and quarkus camel does start. It remains to be seen if the ipf components work as expected.
Please report bugs and propose improvements via GitHub issues of Camel Quarkus project.