<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reloaded components are not started in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/reloaded-components-are-not-started/m-p/321496#M8497</link>
    <description>&lt;P&gt;Thank you for looking into this.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jul 2018 04:40:48 GMT</pubDate>
    <dc:creator>Juha_Kilpi</dc:creator>
    <dc:date>2018-07-05T04:40:48Z</dc:date>
    <item>
      <title>Reloaded components are not started</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/reloaded-components-are-not-started/m-p/321494#M8495</link>
      <description>&lt;P&gt;When components get reloaded they will stay in activated state and will not get started.&lt;/P&gt;
&lt;P&gt;The problem seems to be in &lt;A href="https://github.com/nuxeo/nuxeo/blob/release-10.1/nuxeo-runtime/nuxeo-runtime/src/main/java/org/nuxeo/runtime/model/impl/ComponentManagerImpl.java#L1006"&gt;ComponentManagerImpl.applyStashWhenRunning
()&lt;/A&gt; where new components are activated in one loop, and then in the next "isStandby()" loop when new components should be added to standby list, components are already in activated state instead of resolved, so they will not be added to the list.&lt;/P&gt;
&lt;P&gt;Because components are not added to the standby list, they will not be started when &lt;A href="https://github.com/nuxeo/nuxeo/blob/release-10.1/nuxeo-runtime/nuxeo-runtime/src/main/java/org/nuxeo/runtime/model/impl/ComponentManagerImpl.java#L850"&gt;resumed&lt;/A&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;// activate the new components
for (RegistrationInfo ri : stash.toAdd) {
    if (ri.isResolved()) {
        activateComponent(ri);
    }
}
if (isStandby()) {
    // activate the new components
    for (RegistrationInfo ri : stash.toAdd) {
        if (ri.isResolved()) {
            activateComponent(ri);
            // add new components to standby list
            this.standby.add(ri);
        }
    }
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jul 2018 06:51:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/reloaded-components-are-not-started/m-p/321494#M8495</guid>
      <dc:creator>Juha_Kilpi</dc:creator>
      <dc:date>2018-07-04T06:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Reloaded components are not started</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/reloaded-components-are-not-started/m-p/321495#M8496</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thanks for reporting this issue.&lt;/P&gt;
&lt;P&gt;I created &lt;A href="https://jira.nuxeo.com/browse/NXP-25318"&gt;NXP-25318&lt;/A&gt; to fix it.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 12:47:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/reloaded-components-are-not-started/m-p/321495#M8496</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2018-07-04T12:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reloaded components are not started</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/reloaded-components-are-not-started/m-p/321496#M8497</link>
      <description>&lt;P&gt;Thank you for looking into this.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 04:40:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/reloaded-components-are-not-started/m-p/321496#M8497</guid>
      <dc:creator>Juha_Kilpi</dc:creator>
      <dc:date>2018-07-05T04:40:48Z</dc:date>
    </item>
  </channel>
</rss>

