You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2009/05/15 11:47:50 UTC

[jira] Created: (CAMEL-1618) DSL doesn't support the bean expression without registry

DSL doesn't support the bean expression without registry
--------------------------------------------------------

                 Key: CAMEL-1618
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1618
             Project: Apache Camel
          Issue Type: Bug
    Affects Versions: 2.0-M1, 1.6.0, 1.5.0
            Reporter: Willem Jiang
            Assignee: Willem Jiang


Here is the mail thread of it
[1] http://www.nabble.com/Non-registry-beans-td20088181.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1618) DSL doesn't support the bean expression without registry

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51727#action_51727 ] 

Claus Ibsen commented on CAMEL-1618:
------------------------------------

Willem

Sadly it breaks camel-spring in its SpringRouteBuilder.
You have to revert the change in 1.x as we need to keep the API stable.

On trunk we have the luxury of being able to change the API in SpringRouteBuilder so it does not conflict with camel-core.

In SpringRouteBuilder we also have a bean method for lookup in the spring registry. 
They are not the same

- one is for expression
- the other is for a lookup, so I am inclined to rename the methods in SpringRouteBuilder to {{lookup}} instead.

> DSL doesn't support the bean expression without registry
> --------------------------------------------------------
>
>                 Key: CAMEL-1618
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1618
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.5.0, 1.6.0, 2.0-M1
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>
> Here is the mail thread of it
> [1] http://www.nabble.com/Non-registry-beans-td20088181.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1618) DSL doesn't support the bean expression without registry

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51730#action_51730 ] 

Willem Jiang commented on CAMEL-1618:
-------------------------------------

@Claus,
Thanks for looking this compile error.
I will take care of camel-1.x , now I removed the bean(Class beanType) from  BuilderSupport  in camel-1.x branch and am running the test.

> DSL doesn't support the bean expression without registry
> --------------------------------------------------------
>
>                 Key: CAMEL-1618
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1618
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.5.0, 1.6.0, 2.0-M1
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>
> Here is the mail thread of it
> [1] http://www.nabble.com/Non-registry-beans-td20088181.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1618) DSL doesn't support the bean expression without registry

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51729#action_51729 ] 

Claus Ibsen commented on CAMEL-1618:
------------------------------------

I am renaming the {{bean}} method in SpringRouuteBuilder to {{lookup}} to avoid the clash. And the bean method is actually a lookup so its a better suited name anyway.

> DSL doesn't support the bean expression without registry
> --------------------------------------------------------
>
>                 Key: CAMEL-1618
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1618
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.5.0, 1.6.0, 2.0-M1
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>
> Here is the mail thread of it
> [1] http://www.nabble.com/Non-registry-beans-td20088181.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1618) DSL doesn't support the bean expression without registry

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51732#action_51732 ] 

Willem Jiang commented on CAMEL-1618:
-------------------------------------

Reverted the change of camel-1.x.

trunk
http://svn.apache.org/viewvc?rev=775123&view=rev
http://svn.apache.org/viewvc?rev=775155&view=rev

> DSL doesn't support the bean expression without registry
> --------------------------------------------------------
>
>                 Key: CAMEL-1618
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1618
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.5.0, 1.6.0, 2.0-M1
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.0-M2
>
>
> Here is the mail thread of it
> [1] http://www.nabble.com/Non-registry-beans-td20088181.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1618) DSL doesn't support the bean expression without registry

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51713#action_51713 ] 

Claus Ibsen commented on CAMEL-1618:
------------------------------------

What I also meant to say is that is *only* when doing predicates is missing.

In regular routing its there, eg if you do a .bean(MyClass.class) is there.

> DSL doesn't support the bean expression without registry
> --------------------------------------------------------
>
>                 Key: CAMEL-1618
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1618
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.5.0, 1.6.0, 2.0-M1
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>
> Here is the mail thread of it
> [1] http://www.nabble.com/Non-registry-beans-td20088181.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1618) DSL doesn't support the bean expression without registry

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51731#action_51731 ] 

Claus Ibsen commented on CAMEL-1618:
------------------------------------

Fixed the problem on trunk: 775458.

> DSL doesn't support the bean expression without registry
> --------------------------------------------------------
>
>                 Key: CAMEL-1618
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1618
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.5.0, 1.6.0, 2.0-M1
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>
> Here is the mail thread of it
> [1] http://www.nabble.com/Non-registry-beans-td20088181.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1618) DSL doesn't support the bean expression without registry

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51728#action_51728 ] 

Willem Jiang commented on CAMEL-1618:
-------------------------------------

Claus,

My bad, I just ran the tests in camel-core :(.

How about just removing the DSL of Bean(Class BeanType) from the BuilderSupport in the camel 1.x?
In this way we don't need ot change the API of SpringRouteBuilder and can use bean expression without registry.

For the Camel trunk, I'd like to rename the lookup bean() method to lookupBean..

Willem


> DSL doesn't support the bean expression without registry
> --------------------------------------------------------
>
>                 Key: CAMEL-1618
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1618
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.5.0, 1.6.0, 2.0-M1
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>
> Here is the mail thread of it
> [1] http://www.nabble.com/Non-registry-beans-td20088181.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-1618) DSL doesn't support the bean expression without registry

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-1618.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-M2

> DSL doesn't support the bean expression without registry
> --------------------------------------------------------
>
>                 Key: CAMEL-1618
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1618
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.5.0, 1.6.0, 2.0-M1
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.0-M2
>
>
> Here is the mail thread of it
> [1] http://www.nabble.com/Non-registry-beans-td20088181.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1618) DSL doesn't support the bean expression without registry

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51712#action_51712 ] 

Claus Ibsen commented on CAMEL-1618:
------------------------------------

Its already there in BeanLanguage. 

But what is missing is a method in the BuilderSupport so you can use it with predicates.

> DSL doesn't support the bean expression without registry
> --------------------------------------------------------
>
>                 Key: CAMEL-1618
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1618
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.5.0, 1.6.0, 2.0-M1
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>
> Here is the mail thread of it
> [1] http://www.nabble.com/Non-registry-beans-td20088181.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.