camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-1293) bean component - ability to pass in additional parameters
Date Fri, 23 Jan 2009 07:35:59 GMT
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.


Mime
View raw message