Skip to content
Weik.ioUniversity
Try Weik.io

Connecting to another system

Camel 5 · 3:59

An integration that calls an outside HTTP service needs extra libraries, declared in integration.yaml and resolved by the hub from Maven Central when you publish. The video also covers kamelets, the reusable building blocks of Camel.

Download the mp4Recorded on 2026.2

What it covers

  • Calling an example service and logging fields from its JSON reply
  • Declaring camel:http and camel:jackson in the dependencies list of integration.yaml
  • The two dependency forms, a Camel component name and mvn:group:artifact:version
  • A misspelled dependency, found in the build log with weikio logs --build --version
  • The project's kamelets, listed with weikio get kamelets and on the project page
  • Writing kamelets to disk with weikio kamelets pull, for a run without the hub

Commands in this video

Terminal
$ weikio run ./hello
$ weikio logs sandbox/hello --build --version 0.1.6
$ weikio get kamelets
$ weikio kamelets pull ./kamelets
Transcript
  1. 0:02hello runs in devtest, and everything it reads arrived in the last video.
  2. 0:06This video connects it to another system, and shows what the hub builds for it.
  3. 0:15hello's route builds an Authorization header on every tick,
  4. 0:18and logs the message.
  5. 0:20No step sends the header anywhere; it has no receiver yet.
  6. 0:24This video gives the header a receiver:
  7. 0:27a small example service that answers JSON.
  8. 0:30The route gains the call and the parse of the reply,
  9. 0:33and logs its fields.
  10. 0:37The folder holds three files;
  11. 0:39the route file is where the call goes.
  12. 0:45The call and the parse need two
  13. 0:46libraries the JVM does not start with.
  14. 0:49They are declared in integration.yaml,
  15. 0:52in a dependencies list.
  16. 0:54camel:http brings the HTTP component;
  17. 0:58camel:jackson brings the JSON one.
  18. 1:01run publishes the folder,
  19. 1:03and the hub resolves the libraries at publish, from Maven Central.
  20. 1:10The new version starts,
  21. 1:11and the log line now shows the reply.
  22. 1:16On the drawing,
  23. 1:17hello's ticks now end in a call to erp.example.
  24. 1:23The call carries the Authorization
  25. 1:24header from the last video.
  26. 1:29The service answers with one JSON document;
  27. 1:33the route logs its fields.
  28. 1:39The dependencies list takes two forms.
  29. 1:41camel:http names one of Camel's own components,
  30. 1:45at the version the platform builds with.
  31. 1:48mvn:group:artifact:version is the other form:
  32. 1:52the coordinates of one library, with its version.
  33. 1:55A misspelt name is the easiest mistake here,
  34. 1:58so this video makes one.
  35. 2:00The c drops out of jackson, and run still succeeds.
  36. 2:04The row reads updated:
  37. 2:05the platform's own libraries are in every build.
  38. 2:08Nothing at the site moves; the same reply keeps arriving.
  39. 2:15The whole build log is one command away.
  40. 2:19logs with --build and --version prints what the hub did,
  41. 2:25step by step.
  42. 2:29The c is put back,
  43. 2:30and run publishes the fix as a new version, 0.1.7.
  44. 2:38The log line shows the parsed reply's fields.
  45. 2:45Camel also has reusable building blocks, called kamelets.
  46. 2:49get kamelets lists the ones this project shares,
  47. 2:52and the five the platform ships.
  48. 2:55A project's kamelet is added by pasting its YAML;
  49. 2:58every integration of the project then builds with it.
  50. 3:01A kamelet.yaml file in the folder is the integration's own,
  51. 3:06and wins at the build.
  52. 3:11The same list sits on the project page.
  53. 3:14Each row shows its source, and new kamelets are pasted in.
  54. 3:21For a run without the hub, the kamelets must be on disk.
  55. 3:25kamelets pull writes each one beside
  56. 3:27the integration as a .kamelet.yaml file.
  57. 3:35hello calls another system, from five declared lines in two files.
  58. 3:41The hub resolved the libraries at publish, and the call's reply came back parsed.
  59. 3:46Video nine takes this integration to production.

Next in this track

Camel 6 · 3:03 Custom metrics Watched