GitHub user nicolaferraro opened a pull request:
https://github.com/apache/camel/pull/1199
CAMEL-10358: do not clear the registry too early
When running on Spring, the `doStop` is called by the spring framework
before the default strategy unregisters the consumers, so the registry is
cleared and the undertow servers remain bound to their port when the context is
closed.
We should not clear the registry (change added in
https://github.com/apache/camel/commit/cdd64e10a6c761ccfba4b6d605c53df1250bb9eb)
because it is automatically cleared when the last consumer is unregistered.
This issue prevent using livereload with undertow (port already used). I'm
working on a feature for dynamically changing the configuration on Kubernetes
that is also be impacted.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nicolaferraro/camel CAMEL-10358
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1199.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1199
----
commit 537642b594bc24f8e3ae98897bf409e1ad4fa4b4
Author: Nicola Ferraro <[email protected]>
Date: 2016-10-06T09:11:59Z
CAMEL-10358: do not clear the registry too early
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---