[
https://issues.apache.org/jira/browse/CAMEL-13610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-13610.
---------------------------------
Resolution: Won't Fix
Hi
This is not on our roadmap and Camel routes in the DSL are using endpoints via
string or as an existing endpoint instance. For the latter you can build your
own expression -> endpoint logic or whatever you do to refer to the endpoint to
use.
Also mind that a Camel Expression is bound to an Exchange, eg during routing
messages, and not for dynamic configuration during startup etc.
> Allow for expressions as arguments to RouteBuilder.{from,to}() to dynamically
> change endpoint URIs using the Java DSL
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-13610
> URL: https://issues.apache.org/jira/browse/CAMEL-13610
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Affects Versions: 2.22.1
> Reporter: Philipp Bachmann
> Priority: Major
>
> We use Apache Camel, in particular its IMAP and SMTP endpoins. When, for
> whatever reason, the endpoints fail, e.g. the SMTP server is down, then it
> was nice if we were able to connect to an alternative endpoint. As I have
> researched so far, Apache Camel does not allow for a dynamic way of
> specifying the URIs e.g. in terms of a user supplied callback Strategy. The
> only way I have figured out are the load balancing features, but then you
> still have to know the URIs in advance.
> So may I suggest to add overloads of the from() and to() methods that accept
> expressions, which in my opinion would gain the flexibility desired?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)