You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2008/01/18 13:44:21 UTC
[jira] Commented: (CAMEL-292) Java DSL does not have a method to
register Java POJOs against a bean name on the fly
[ 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.