You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2025/09/19 09:13:00 UTC
[jira] [Created] (CAMEL-22431) camel-once - A component for development to trigger only once
Claus Ibsen created CAMEL-22431:
-----------------------------------
Summary: camel-once - A component for development to trigger only once
Key: CAMEL-22431
URL: https://issues.apache.org/jira/browse/CAMEL-22431
Project: Camel
Issue Type: New Feature
Reporter: Claus Ibsen
Fix For: 4.x
During development you may want to trigger only once, and then you use timer with repeat count = 1, but we can have a once component (or some better name)
And this component can be made to hardcode message body / headers / variables etc as endpoint options so you can do this all quickly.
{code:java}
from:
uri: once
parameters:
body: file:data.json
header.foo: 123
header.bar: 456
variable.xxx: beer {code}
Or make header and variables a single option with values seperated by comma
{code:java}
headers: "foo=123,bar=456"{code}
{code:java}
variables: "xxx=beer,yyy=cheese"{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)