You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by sekaijin <je...@sap.aphp.fr> on 2014/02/22 15:20:40 UTC

suggestion for camel XML DSL

Hi, 

A suggestion for XML DSL camel. 

when a defined context and routes with camel XML is boring fill use a
placeholder. 
then we can easily parameterize the route. but some elements do not support
parameters. 

we can not use a parameter for the name of the road or context. 

Invalid XML ids
I'm suggest


impossible to write for example

I propose that the name attribute is added or contextId and routeId on
context and road. to allow setting these attributes. use the XML id
prohibits the use of parameters. 

to the value between the tags and not the attribute It would be interesting
to find a way to make them configurable. 

With this it is possible to define a road model in XML and allow the user
the choice of final parameters
A + JYT



--
View this message in context: http://camel.465427.n5.nabble.com/suggestion-for-camel-XML-DSL-tp5747821.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: suggestion for camel XML DSL

Posted by sekaijin <je...@sap.aphp.fr>.
Hi.

Ok thank
I'm running 2.8.1

bye



--
View this message in context: http://camel.465427.n5.nabble.com/suggestion-for-camel-XML-DSL-tp5747821p5748109.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: suggestion for camel XML DSL

Posted by Claus Ibsen <cl...@gmail.com>.
This should actually be supported from Camel 2.11 onwards.


On Sun, Feb 23, 2014 at 10:51 AM, sekaijin
<je...@sap.aphp.fr> wrote:
> Hello,
> @Claus Ibsen-2 : The id is a special type for identifier
> It is for this reason that I propose to add an attribute "routeId"
> as in java.
>
>
> Sample id just for registry and XML
> routeId for use JMX, Karaf, ServiceMix.
>
> I have read the documentation
>
> java , the developer can do read a properties file and do:
>
>
> the user can then choose a url and the name that will give its route
> in Karaf if execute list-routes he sees the name he has chosen .
>
> In xml , the developer can do read a properties file to define the url but
> not the ID .
> The user can not choose his route name .
>
> in the documention it is clearly explained that camel is used {{}} and not
> ${ } . this syntax referring to internal elements such as camel
> ${in.body}.
>
> I can not write
>
> I can not write
>
>
> there is no way to use a property value read in the placeholder for use it
> in a TAG,. Just in attribute.
>
> but in JAVA DSL I can use properties for both
>
> A + JYT
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/suggestion-for-camel-XML-DSL-tp5747821p5747832.html
> Sent from the Camel Development mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Re: suggestion for camel XML DSL

Posted by sekaijin <je...@sap.aphp.fr>.
Hello,
@Claus Ibsen-2 : The id is a special type for identifier
It is for this reason that I propose to add an attribute "routeId" 
as in java. 


Sample id just for registry and XML 
routeId for use JMX, Karaf, ServiceMix.

I have read the documentation

java , the developer can do read a properties file and do:


the user can then choose a url and the name that will give its route
in Karaf if execute list-routes he sees the name he has chosen .

In xml , the developer can do read a properties file to define the url but
not the ID .
The user can not choose his route name .

in the documention it is clearly explained that camel is used {{}} and not
${ } . this syntax referring to internal elements such as camel
${in.body}.

I can not write

I can not write


there is no way to use a property value read in the placeholder for use it
in a TAG,. Just in attribute.

but in JAVA DSL I can use properties for both

A + JYT



--
View this message in context: http://camel.465427.n5.nabble.com/suggestion-for-camel-XML-DSL-tp5747821p5747832.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: suggestion for camel XML DSL

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

The id is a special type for identifier - dont think it allows {{ }}
or ${ } syntax.

But you can try as documented at section:
Using property placeholders for any kind of attribute in the XML DSL

on this page:
http://camel.apache.org/using-propertyplaceholder.html

On Sat, Feb 22, 2014 at 3:20 PM, sekaijin <je...@sap.aphp.fr> wrote:
> Hi,
>
> A suggestion for XML DSL camel.
>
> when a defined context and routes with camel XML is boring fill use a
> placeholder.
> then we can easily parameterize the route. but some elements do not support
> parameters.
>
> we can not use a parameter for the name of the road or context.
>
> Invalid XML ids
> I'm suggest
>
>
> impossible to write for example
>
> I propose that the name attribute is added or contextId and routeId on
> context and road. to allow setting these attributes. use the XML id
> prohibits the use of parameters.
>
> to the value between the tags and not the attribute It would be interesting
> to find a way to make them configurable.
>
> With this it is possible to define a road model in XML and allow the user
> the choice of final parameters
> A + JYT
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/suggestion-for-camel-XML-DSL-tp5747821.html
> Sent from the Camel Development mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io