Re: [HEADS UP] - Introducing variables to Camel 4.4

2024-01-02 Thread Alexandre Gallice
Ok make sense, thanks for clarification Claus.
With user variables separated from internal exchange properties, I wonder
if properties become kind of read-only from user perspective.

And yes, the naming is even harder in this area with context global
options, exchange properties, component options, endpoint options... :)

On Tue, Jan 2, 2024 at 3:43 PM Claus Ibsen  wrote:

> On Tue, Jan 2, 2024 at 3:26 PM Alexandre Gallice 
> wrote:
>
> > Hi Claus,
> >
> >   Looks interesting. New year, new idea :)
> >
> >   I wonder what is the difference between exchange property and variable.
> >   Don't they have the same scope and mutability ?
> >
> >
> exchange properties is a mixed bag of internal stuff and yes users can also
> store their own stuff there.
> But then you end up with user stuff and internal camel stuff. Also exchange
> properties are private per exchange only.
>
> Variables = 100% end user.
> And you can have different scopes / repositories so you can share
> variables, or persist them or whatever.
>
> Also a variable is a more common concept for users as it's something every
> programming language has.
> Exchange properties can be mistaken for those "properties" you configure on
> endpoints, components, and in application.properties, and when using
> property placeholders {{xxx}}.
> In fact they were called properties in Camel 1.x/2.x and renamed to
> exchange properties to better say that these are properties on an exchange,
> and not any of 
>
>
>
>
>
>
>
> > Cheers,
> > Alex
> >
> > On Sun, Dec 31, 2023 at 1:16 PM Claus Ibsen 
> wrote:
> >
> > > Hi
> > >
> > > JIRA
> > > https://issues.apache.org/jira/projects/CAMEL/issues/CAMEL-19749
> > >
> > > We are working on adding support for variables to Camel.
> > >
> > > See more in the docs at
> > >
> > >
> >
> https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/variables.adoc
> > >
> > > And examples for Spring Boot and Main / JBang
> > >
> https://github.com/apache/camel-spring-boot-examples/tree/main/variables
> > >
> >
> https://github.com/apache/camel-kamelets-examples/tree/main/jbang/variables
> > >
> > > There is more work coming, but this is the initial and basics of
> > variables.
> > >
> > >
> > >
> > >
> > > --
> > > Claus Ibsen
> > > -
> > > @davsclaus
> > > Camel in Action 2: https://www.manning.com/ibsen2
> > >
> >
>
>
> --
> Claus Ibsen
> -
> @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>


Re: [HEADS UP] - Introducing variables to Camel 4.4

2024-01-02 Thread Claus Ibsen
On Tue, Jan 2, 2024 at 3:26 PM Alexandre Gallice 
wrote:

> Hi Claus,
>
>   Looks interesting. New year, new idea :)
>
>   I wonder what is the difference between exchange property and variable.
>   Don't they have the same scope and mutability ?
>
>
exchange properties is a mixed bag of internal stuff and yes users can also
store their own stuff there.
But then you end up with user stuff and internal camel stuff. Also exchange
properties are private per exchange only.

Variables = 100% end user.
And you can have different scopes / repositories so you can share
variables, or persist them or whatever.

Also a variable is a more common concept for users as it's something every
programming language has.
Exchange properties can be mistaken for those "properties" you configure on
endpoints, components, and in application.properties, and when using
property placeholders {{xxx}}.
In fact they were called properties in Camel 1.x/2.x and renamed to
exchange properties to better say that these are properties on an exchange,
and not any of 







> Cheers,
> Alex
>
> On Sun, Dec 31, 2023 at 1:16 PM Claus Ibsen  wrote:
>
> > Hi
> >
> > JIRA
> > https://issues.apache.org/jira/projects/CAMEL/issues/CAMEL-19749
> >
> > We are working on adding support for variables to Camel.
> >
> > See more in the docs at
> >
> >
> https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/variables.adoc
> >
> > And examples for Spring Boot and Main / JBang
> > https://github.com/apache/camel-spring-boot-examples/tree/main/variables
> >
> https://github.com/apache/camel-kamelets-examples/tree/main/jbang/variables
> >
> > There is more work coming, but this is the initial and basics of
> variables.
> >
> >
> >
> >
> > --
> > Claus Ibsen
> > -
> > @davsclaus
> > Camel in Action 2: https://www.manning.com/ibsen2
> >
>


-- 
Claus Ibsen
-
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2


Re: [HEADS UP] - Introducing variables to Camel 4.4

2024-01-02 Thread Alexandre Gallice
Hi Claus,

  Looks interesting. New year, new idea :)

  I wonder what is the difference between exchange property and variable.
  Don't they have the same scope and mutability ?

Cheers,
Alex

On Sun, Dec 31, 2023 at 1:16 PM Claus Ibsen  wrote:

> Hi
>
> JIRA
> https://issues.apache.org/jira/projects/CAMEL/issues/CAMEL-19749
>
> We are working on adding support for variables to Camel.
>
> See more in the docs at
>
> https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/variables.adoc
>
> And examples for Spring Boot and Main / JBang
> https://github.com/apache/camel-spring-boot-examples/tree/main/variables
> https://github.com/apache/camel-kamelets-examples/tree/main/jbang/variables
>
> There is more work coming, but this is the initial and basics of variables.
>
>
>
>
> --
> Claus Ibsen
> -
> @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>


[HEADS UP] - Introducing variables to Camel 4.4

2023-12-31 Thread Claus Ibsen
Hi

JIRA
https://issues.apache.org/jira/projects/CAMEL/issues/CAMEL-19749

We are working on adding support for variables to Camel.

See more in the docs at
https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/variables.adoc

And examples for Spring Boot and Main / JBang
https://github.com/apache/camel-spring-boot-examples/tree/main/variables
https://github.com/apache/camel-kamelets-examples/tree/main/jbang/variables

There is more work coming, but this is the initial and basics of variables.




-- 
Claus Ibsen
-
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2