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] Commented: (CAMEL-844) Bean language to support invoking beans not in registry
Date Sat, 23 Aug 2008 15:42:52 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45132#action_45132
] 

Claus Ibsen commented on CAMEL-844:
-----------------------------------

Also the BeanProcessors debug logging isn't useful:

 DEBUG BeanProcessor                  - >>>> invoking method for: Exchange[Message:
org.apache.camel.example.reportincident.InputReportIncident@1f78ef1]

It doesn't output what method or pojo or whatever it invokes.

> Bean language to support invoking beans not in registry
> -------------------------------------------------------
>
>                 Key: CAMEL-844
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-844
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> The bean language is fantastic, but using the java DSL routing without the spring beans
is a bit painful as you need to register the beans in the registry before you can use it.
> Sometimes you just want it to invoke a method on pojo class so we need to support this
style also:
> {code:java}
> bean(MyPojoClass.class, "helloworld")
> {code}
> Where MyPojoClass will be created on the fly and invoking the *helloworld* method.
> Also if the class is already created we can use a reference to it:
> {code:java}
> bean(myInstance, "helloworld")
> {code}

-- 
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