| = Jvm Trait |
| |
| // Start of autogenerated code - DO NOT EDIT! (description) |
| The JVM trait is used to configure the JVM that runs the Integration. This trait is configured only for Integration and related IntegrationKits |
| (bound to a container image) built by Camel K operator. If the system detects the usage of a different container image (ie, built externally), then, the |
| trait is disabled by the platform. |
| |
| WARNING: you can still enable the trait explicitly even when it is disabled by the platform but you should be aware that some configurations could fail. |
| |
| |
| This trait is available in the following profiles: **Kubernetes, Knative, OpenShift**. |
| |
| // End of autogenerated code - DO NOT EDIT! (description) |
| // Start of autogenerated code - DO NOT EDIT! (configuration) |
| == Configuration |
| |
| Trait properties can be specified when running any integration with the CLI: |
| [source,console] |
| ---- |
| $ kamel run --trait jvm.[key]=[value] --trait jvm.[key2]=[value2] integration.groovy |
| ---- |
| The following configuration options are available: |
| |
| [cols="2m,1m,5a"] |
| |=== |
| |Property | Type | Description |
| |
| | jvm.enabled |
| | bool |
| | Can be used to enable or disable a trait. All traits share this common property. |
| |
| | jvm.debug |
| | bool |
| | Activates remote debugging, so that a debugger can be attached to the JVM, e.g., using port-forwarding |
| |
| | jvm.debug-suspend |
| | bool |
| | Suspends the target JVM immediately before the main class is loaded |
| |
| | jvm.print-command |
| | bool |
| | Prints the command used the start the JVM in the container logs (default `true`) |
| |
| | jvm.debug-address |
| | string |
| | Transport address at which to listen for the newly launched JVM (default `*:5005`) |
| |
| | jvm.options |
| | []string |
| | A list of JVM options |
| |
| | jvm.classpath |
| | string |
| | Additional JVM classpath (use `Linux` classpath separator) |
| |
| |=== |
| |
| // End of autogenerated code - DO NOT EDIT! (configuration) |
| |
| == Examples |
| |
| * Include an additional classpath to the `Integration`: |
| + |
| [source,console] |
| $ kamel run -t jvm.classpath=/path/to/my-dependency.jar:/path/to/another-dependency.jar ... |