You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Olivier Roger (JIRA)" <ji...@apache.org> on 2010/10/21 10:36:40 UTC
[jira] Created: (CAMEL-3263) Camel-exec - ease usage with Spring
DSL
Camel-exec - ease usage with Spring DSL
---------------------------------------
Key: CAMEL-3263
URL: https://issues.apache.org/activemq/browse/CAMEL-3263
Project: Apache Camel
Issue Type: Improvement
Affects Versions: 2.4.0
Reporter: Olivier Roger
It would be more user friendly if it a String could be also be given instead of a Java List object.
In that case a separator would be necessary but I guess a blank space could be the default value.
Sample of usage :
{code} <!-- optional -->
<setHeader headerName="CamelExecCommandArgs">
<constant>,</constant>
</setHeader>
<setHeader headerName="CamelExecCommandArgs">
<simple>arg1,arg2,arg3</simple> <!-- of course simple offers many more advance possibilities -->
</setHeader>
{code}
For more details, please see [The mailling list discution on that topic|http://camel.465427.n5.nabble.com/Camel-exec-dynamic-parameters-in-Spring-DSL-td3230040.html#a3230040]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-3263) Camel-exec - ease usage with Spring
DSL
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-3263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62718#action_62718 ]
Claus Ibsen commented on CAMEL-3263:
------------------------------------
This applies in fact for Java DSL as well. The problem is to provide multiple args as a header, regardless if its Java DSL or Spring XML.
And you would like to have a single String with the args separated.
We should probably add an option to specify the separator and use comma as default.
- CamelExecCommandSeparator
Then you can set the header in case you use something else than comma
> Camel-exec - ease usage with Spring DSL
> ---------------------------------------
>
> Key: CAMEL-3263
> URL: https://issues.apache.org/activemq/browse/CAMEL-3263
> Project: Apache Camel
> Issue Type: Improvement
> Affects Versions: 2.4.0
> Reporter: Olivier Roger
>
> It would be more user friendly if it a String could be also be given instead of a Java List object.
> In that case a separator would be necessary but I guess a blank space could be the default value.
> Sample of usage :
> {code} <!-- optional -->
> <setHeader headerName="CamelExecCommandArgs">
> <constant>,</constant>
> </setHeader>
> <setHeader headerName="CamelExecCommandArgs">
> <simple>arg1,arg2,arg3</simple> <!-- of course simple offers many more advance possibilities -->
> </setHeader>
> {code}
> For more details, please see [The mailling list discution on that topic|http://camel.465427.n5.nabble.com/Camel-exec-dynamic-parameters-in-Spring-DSL-td3230040.html#a3230040]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-3263) Camel-exec - ease usage with Spring
DSL
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-3263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-3263:
----------------------------------
Assignee: Claus Ibsen
> Camel-exec - ease usage with Spring DSL
> ---------------------------------------
>
> Key: CAMEL-3263
> URL: https://issues.apache.org/activemq/browse/CAMEL-3263
> Project: Apache Camel
> Issue Type: Improvement
> Affects Versions: 2.4.0
> Reporter: Olivier Roger
> Assignee: Claus Ibsen
> Fix For: 2.5.0
>
>
> It would be more user friendly if it a String could be also be given instead of a Java List object.
> In that case a separator would be necessary but I guess a blank space could be the default value.
> Sample of usage :
> {code} <!-- optional -->
> <setHeader headerName="CamelExecCommandArgs">
> <constant>,</constant>
> </setHeader>
> <setHeader headerName="CamelExecCommandArgs">
> <simple>arg1,arg2,arg3</simple> <!-- of course simple offers many more advance possibilities -->
> </setHeader>
> {code}
> For more details, please see [The mailling list discution on that topic|http://camel.465427.n5.nabble.com/Camel-exec-dynamic-parameters-in-Spring-DSL-td3230040.html#a3230040]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-3263) Camel-exec - ease usage with Spring
DSL
Posted by "Olivier Roger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-3263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Roger updated CAMEL-3263:
---------------------------------
Description:
It would be more user friendly if it a String could be also be given instead of a Java List object.
In that case a separator would be necessary but I guess a blank space could be the default value.
Sample of usage :
{code} <!-- optional -->
<setHeader headerName="CamelExecCommandSeparator">
<constant>,</constant>
</setHeader>
<setHeader headerName="CamelExecCommandArgs">
<simple>arg1,arg2,arg3</simple> <!-- of course simple offers many more advance possibilities -->
</setHeader>
{code}
For more details, please see [The mailling list discution on that topic|http://camel.465427.n5.nabble.com/Camel-exec-dynamic-parameters-in-Spring-DSL-td3230040.html#a3230040]
was:
It would be more user friendly if it a String could be also be given instead of a Java List object.
In that case a separator would be necessary but I guess a blank space could be the default value.
Sample of usage :
{code} <!-- optional -->
<setHeader headerName="CamelExecCommandArgs">
<constant>,</constant>
</setHeader>
<setHeader headerName="CamelExecCommandArgs">
<simple>arg1,arg2,arg3</simple> <!-- of course simple offers many more advance possibilities -->
</setHeader>
{code}
For more details, please see [The mailling list discution on that topic|http://camel.465427.n5.nabble.com/Camel-exec-dynamic-parameters-in-Spring-DSL-td3230040.html#a3230040]
That's great news.
I also think blank space is more fitted than comma since it will reproduce the shell behavior.
> Camel-exec - ease usage with Spring DSL
> ---------------------------------------
>
> Key: CAMEL-3263
> URL: https://issues.apache.org/activemq/browse/CAMEL-3263
> Project: Apache Camel
> Issue Type: Improvement
> Affects Versions: 2.4.0
> Reporter: Olivier Roger
> Assignee: Claus Ibsen
> Fix For: 2.5.0
>
>
> It would be more user friendly if it a String could be also be given instead of a Java List object.
> In that case a separator would be necessary but I guess a blank space could be the default value.
> Sample of usage :
> {code} <!-- optional -->
> <setHeader headerName="CamelExecCommandSeparator">
> <constant>,</constant>
> </setHeader>
> <setHeader headerName="CamelExecCommandArgs">
> <simple>arg1,arg2,arg3</simple> <!-- of course simple offers many more advance possibilities -->
> </setHeader>
> {code}
> For more details, please see [The mailling list discution on that topic|http://camel.465427.n5.nabble.com/Camel-exec-dynamic-parameters-in-Spring-DSL-td3230040.html#a3230040]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-3263) Camel-exec - ease usage with Spring
DSL
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-3263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62719#action_62719 ]
Claus Ibsen commented on CAMEL-3263:
------------------------------------
I got this working now. The component had already a String -> args parser which wasn't in use when using headers. But it was when using endpoint.
So I will fix this.
Then you separate args using space, just as you would type on the cmd line in the shell.
> Camel-exec - ease usage with Spring DSL
> ---------------------------------------
>
> Key: CAMEL-3263
> URL: https://issues.apache.org/activemq/browse/CAMEL-3263
> Project: Apache Camel
> Issue Type: Improvement
> Affects Versions: 2.4.0
> Reporter: Olivier Roger
>
> It would be more user friendly if it a String could be also be given instead of a Java List object.
> In that case a separator would be necessary but I guess a blank space could be the default value.
> Sample of usage :
> {code} <!-- optional -->
> <setHeader headerName="CamelExecCommandArgs">
> <constant>,</constant>
> </setHeader>
> <setHeader headerName="CamelExecCommandArgs">
> <simple>arg1,arg2,arg3</simple> <!-- of course simple offers many more advance possibilities -->
> </setHeader>
> {code}
> For more details, please see [The mailling list discution on that topic|http://camel.465427.n5.nabble.com/Camel-exec-dynamic-parameters-in-Spring-DSL-td3230040.html#a3230040]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-3263) Camel-exec - ease usage with Spring
DSL
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-3263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-3263.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.5.0
trunk: 1025906.
Now you can for example do, separated by space.
{code:xml}
<simple>arg1 arg2 arg3</simple>
{code}
> Camel-exec - ease usage with Spring DSL
> ---------------------------------------
>
> Key: CAMEL-3263
> URL: https://issues.apache.org/activemq/browse/CAMEL-3263
> Project: Apache Camel
> Issue Type: Improvement
> Affects Versions: 2.4.0
> Reporter: Olivier Roger
> Assignee: Claus Ibsen
> Fix For: 2.5.0
>
>
> It would be more user friendly if it a String could be also be given instead of a Java List object.
> In that case a separator would be necessary but I guess a blank space could be the default value.
> Sample of usage :
> {code} <!-- optional -->
> <setHeader headerName="CamelExecCommandSeparator">
> <constant>,</constant>
> </setHeader>
> <setHeader headerName="CamelExecCommandArgs">
> <simple>arg1,arg2,arg3</simple> <!-- of course simple offers many more advance possibilities -->
> </setHeader>
> {code}
> For more details, please see [The mailling list discution on that topic|http://camel.465427.n5.nabble.com/Camel-exec-dynamic-parameters-in-Spring-DSL-td3230040.html#a3230040]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.