You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Dhiraj Bokde (JIRA)" <ji...@apache.org> on 2008/01/15 17:58:43 UTC

[jira] Created: (CAMEL-292) Java DSL does not have a method to register Java POJOs against a bean name on the fly

Java DSL does not have a method to register Java POJOs against a bean name on the fly
-------------------------------------------------------------------------------------

                 Key: CAMEL-292
                 URL: https://issues.apache.org/activemq/browse/CAMEL-292
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Dhiraj Bokde


A RouteBuilder may need to create Java POJO Beans dynamically and register them in the registry to be accessed from a route using a bean:.. URI, the current Java DSL does not have a method to do so. 

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


[jira] Resolved: (CAMEL-292) Java DSL does not have a method to register Java POJOs against a bean name on the fly

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

James Strachan resolved CAMEL-292.
----------------------------------

    Resolution: Won't Fix

See if my explanation in my previous comment is acceptable - if not, let us know and we can reopen

> Java DSL does not have a method to register Java POJOs against a bean name on the fly
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-292
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-292
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Dhiraj Bokde
>
> A RouteBuilder may need to create Java POJO Beans dynamically and register them in the registry to be accessed from a route using a bean:.. URI, the current Java DSL does not have a method to do so. 

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


[jira] Updated: (CAMEL-292) Java DSL does not have a method to register Java POJOs against a bean name on the fly

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

Hadrian Zbarcea updated CAMEL-292:
----------------------------------

    Fix Version/s: 1.3.0

> Java DSL does not have a method to register Java POJOs against a bean name on the fly
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-292
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-292
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Dhiraj Bokde
>             Fix For: 1.3.0
>
>
> A RouteBuilder may need to create Java POJO Beans dynamically and register them in the registry to be accessed from a route using a bean:.. URI, the current Java DSL does not have a method to do so. 

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


[jira] Commented: (CAMEL-292) Java DSL does not have a method to register Java POJOs against a bean name on the fly

Posted by "James Strachan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41067#action_41067 ] 

James Strachan commented on CAMEL-292:
--------------------------------------

the references are typically to some external [Registry|http://activemq.apache.org/camel/registry.html] such as JNDI or Spring.

However if a RouteBuilder wants to use its own bean inside the DSL just use the bean() method.

{code}
from("activemq:myQueue").bean(new MyBean()).to("activemq:anotherQueue");
{code}

or

{code}
from("activemq:myQueue").bean(MyBean.class).to("activemq:anotherQueue");
{code}

The main thing is, its not really that easy to register a new bean in, say, Spring - so am tempted to leave thing as they are. Would that be ok with you?



> Java DSL does not have a method to register Java POJOs against a bean name on the fly
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-292
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-292
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Dhiraj Bokde
>
> A RouteBuilder may need to create Java POJO Beans dynamically and register them in the registry to be accessed from a route using a bean:.. URI, the current Java DSL does not have a method to do so. 

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