[
https://issues.apache.org/jira/browse/CAMEL-10323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-10323.
---------------------------------
Resolution: Fixed
Assignee: Claus Ibsen
Fix Version/s: 2.19.0
There is a new lazySessionCreation option on the producer like mina/netty that
is default true
> MQTT producer creation fails if network is not available at startup
> -------------------------------------------------------------------
>
> Key: CAMEL-10323
> URL: https://issues.apache.org/jira/browse/CAMEL-10323
> Project: Camel
> Issue Type: Improvement
> Components: camel-mqtt
> Affects Versions: 2.17.2, 2.17.3
> Reporter: Vladimir Dzalbo
> Assignee: Claus Ibsen
> Fix For: 2.19.0
>
>
> Trying to use Camel in environment with unstable network came with following
> problem: when Camel context starts up with network not being available no
> matter what retry settings are set, the creation of the producer will fail,
> which will also by default mean failure in the creation of context.
> It would be good if behavior was similar to other components (like mina or
> netty), where producer tries to establish connection when it has a message to
> send (or periodically?)
> So, once network connection is created (maybe hours or days after creation)
> endpoint would be functional and all messages can be delivered given
> Guaranteed Delivery pattern is used.
> Can we avoid fatal exception on creation of the Endpoint?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)