You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/01/23 08:35:59 UTC
[jira] Created: (CAMEL-1293) bean component - ability to pass in
additional parameters
bean component - ability to pass in additional parameters
---------------------------------------------------------
Key: CAMEL-1293
URL: https://issues.apache.org/activemq/browse/CAMEL-1293
Project: Apache Camel
Issue Type: Improvement
Components: camel-core
Affects Versions: 1.5.0
Reporter: Claus Ibsen
Fix For: Future
Idea from FUSE OS Community
Invoking a bean and you want to pass in an additional parameter (not from Exchange) such as
Such as
{code}
from("activemq:gold").to("bean:orderSerivce?method=placeOrder&type=goldCustomer")
{code}
The type parameter is maybe a String type in the placeOrder method that Camel should invoke with the text "goldCustomer".
We can kinda add this with @annotations to bind to the parameter name.
Maybe we could also support varargs in the java fluent builder with the .bean
{code}
from("activemq:gold").beanRef(orderSerivce, "placeOrder", "goldCustomer");
{code}
Well I just created the ticket to not forget about it.
Any thoughts from the other Riders?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1293) bean component - ability to pass in
additional parameters
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49125#action_49125 ]
Willem Jiang commented on CAMEL-1293:
-------------------------------------
How about set the header for the type ?
Camel already support it out of box :)
The DSL could be
{code}
from("activemq:gold").setHeader("type", constant("goldCusomer")).to("bean:orderSerivce?method=placeOrder");
{code}
You can use the bean's annotation for the parameter consuming
{code}
public class Foo {
public void doSomething(@Header(name = "type") String type, @Body String body) {
// process the inbound message here
}
}
{code}
> bean component - ability to pass in additional parameters
> ---------------------------------------------------------
>
> Key: CAMEL-1293
> URL: https://issues.apache.org/activemq/browse/CAMEL-1293
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 1.5.0
> Reporter: Claus Ibsen
> Fix For: Future
>
>
> Idea from FUSE OS Community
> Invoking a bean and you want to pass in an additional parameter (not from Exchange) such as
> Such as
> {code}
> from("activemq:gold").to("bean:orderSerivce?method=placeOrder&type=goldCustomer")
> {code}
> The type parameter is maybe a String type in the placeOrder method that Camel should invoke with the text "goldCustomer".
> We can kinda add this with @annotations to bind to the parameter name.
> Maybe we could also support varargs in the java fluent builder with the .bean
> {code}
> from("activemq:gold").beanRef(orderSerivce, "placeOrder", "goldCustomer");
> {code}
> Well I just created the ticket to not forget about it.
> Any thoughts from the other Riders?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1293) bean component - ability to pass in
additional parameters
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49126#action_49126 ]
Willem Jiang commented on CAMEL-1293:
-------------------------------------
@Claus
I don't think the varargs is a good idea.
It is not easy to find the right parameter variable in the placeOrder method to take the value of "goldCustomer".
> bean component - ability to pass in additional parameters
> ---------------------------------------------------------
>
> Key: CAMEL-1293
> URL: https://issues.apache.org/activemq/browse/CAMEL-1293
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 1.5.0
> Reporter: Claus Ibsen
> Fix For: Future
>
>
> Idea from FUSE OS Community
> Invoking a bean and you want to pass in an additional parameter (not from Exchange) such as
> Such as
> {code}
> from("activemq:gold").to("bean:orderSerivce?method=placeOrder&type=goldCustomer")
> {code}
> The type parameter is maybe a String type in the placeOrder method that Camel should invoke with the text "goldCustomer".
> We can kinda add this with @annotations to bind to the parameter name.
> Maybe we could also support varargs in the java fluent builder with the .bean
> {code}
> from("activemq:gold").beanRef(orderSerivce, "placeOrder", "goldCustomer");
> {code}
> Well I just created the ticket to not forget about it.
> Any thoughts from the other Riders?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1293) bean component - ability to pass in
additional parameters
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-1293.
---------------------------------
Resolution: Won't Fix
I think we can resolved this issue now :)
> bean component - ability to pass in additional parameters
> ---------------------------------------------------------
>
> Key: CAMEL-1293
> URL: https://issues.apache.org/activemq/browse/CAMEL-1293
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 1.5.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Fix For: Future
>
>
> Idea from FUSE OS Community
> Invoking a bean and you want to pass in an additional parameter (not from Exchange) such as
> Such as
> {code}
> from("activemq:gold").to("bean:orderSerivce?method=placeOrder&type=goldCustomer")
> {code}
> The type parameter is maybe a String type in the placeOrder method that Camel should invoke with the text "goldCustomer".
> We can kinda add this with @annotations to bind to the parameter name.
> Maybe we could also support varargs in the java fluent builder with the .bean
> {code}
> from("activemq:gold").beanRef(orderSerivce, "placeOrder", "goldCustomer");
> {code}
> Well I just created the ticket to not forget about it.
> Any thoughts from the other Riders?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-1293) bean component - ability to pass in
additional parameters
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-1293:
-----------------------------------
Assignee: Willem Jiang
> bean component - ability to pass in additional parameters
> ---------------------------------------------------------
>
> Key: CAMEL-1293
> URL: https://issues.apache.org/activemq/browse/CAMEL-1293
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 1.5.0
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Fix For: Future
>
>
> Idea from FUSE OS Community
> Invoking a bean and you want to pass in an additional parameter (not from Exchange) such as
> Such as
> {code}
> from("activemq:gold").to("bean:orderSerivce?method=placeOrder&type=goldCustomer")
> {code}
> The type parameter is maybe a String type in the placeOrder method that Camel should invoke with the text "goldCustomer".
> We can kinda add this with @annotations to bind to the parameter name.
> Maybe we could also support varargs in the java fluent builder with the .bean
> {code}
> from("activemq:gold").beanRef(orderSerivce, "placeOrder", "goldCustomer");
> {code}
> Well I just created the ticket to not forget about it.
> Any thoughts from the other Riders?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.