<?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: How to hot reload bundles without Nuxeo IDE? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328327#M15328</link>
    <description>&lt;P&gt;I work with nuxeo-dm-5.4.3-I20111024_2229-tomcat.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2011 22:39:26 GMT</pubDate>
    <dc:creator>dario_</dc:creator>
    <dc:date>2011-11-21T22:39:26Z</dc:date>
    <item>
      <title>How to hot reload bundles without Nuxeo IDE?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328319#M15320</link>
      <description>&lt;P&gt;I've been using JSF facelets autorefresh and JBoss Seam hot reload to provide some hot reload abilities but I've read that Nuxeo IDE is able to hot reload bundles.&lt;/P&gt;
&lt;P&gt;Are there any limitations and how can we do it using Ant or Maven ?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2011 00:09:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328319#M15320</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2011-10-08T00:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to hot reload bundles without Nuxeo IDE?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328320#M15321</link>
      <description>&lt;P&gt;Though you might already be aware of this, hot reload with ant is presented in the following documentation entry: &lt;A href="http://doc.nuxeo.com/x/Pwcz"&gt;How to do incremental deployment (hot reload) in the JSF-Seam layer&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;You also have to make sure that the bundles you want to reload are configured to be hot-reloadable:
&lt;A href="http://doc.nuxeo.com/x/UwBV"&gt;How to make a bundle able to hot-reload&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2011 22:41:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328320#M15321</guid>
      <dc:creator>Wojciech_Sulejm</dc:creator>
      <dc:date>2011-10-10T22:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to hot reload bundles without Nuxeo IDE?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328321#M15322</link>
      <description>&lt;P&gt;Thank you. I'm aware of that. I was looking for a way to reload all sorts of bundles, this would really take the pain out of development and constant restarts.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2011 11:53:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328321#M15322</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2011-10-11T11:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to hot reload bundles without Nuxeo IDE?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328322#M15323</link>
      <description>&lt;P&gt;Ok, I've been doing some research into this and I'll be updating this answer according to my findings:&lt;/P&gt;
&lt;P&gt;I've been using release-5.4.2 but I found that starting on release-5.4.2-HF07 they backported "org.nuxeo.runtime.tomcat.dev.NuxeoDevWebappClassLoader".&lt;/P&gt;
&lt;P&gt;You can read some details in the &lt;A href="https://jira.nuxeo.com/browse/NXP-7389"&gt;NXP-7389&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Basically to enable hot reload you should modify the conf/Catalina/localhost/nuxeo.xml l context configuration file and replace:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Loader className="org.nuxeo.runtime.tomcat.NuxeoWebappLoader"
loaderClass="org.nuxeo.runtime.tomcat.NuxeoWebappClassLoader" /&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;by&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Loader className="org.nuxeo.runtime.tomcat.NuxeoWebappLoader"
loaderClass="org.nuxeo.runtime.tomcat.dev.NuxeoDevWebappClassLoader" /&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you will be able to reload jars or bundles that ARE NOT in nxserver/bundles or nxserver/lib by specifyin the list of these bundles in the file nxserver/dev.bundles.&lt;/P&gt;
&lt;P&gt;The format of this file is one file path per line (the file corresponding to the bundle JAR or directory).
Thus, you can point to project bin directories in your Eclipse IDE, or on JARs outside nuxeo server.&lt;/P&gt;
&lt;P&gt;To specify a third party JAR that is not a BUNDLE you must prepend its path with a !.
YOu can use blank lines or lines starting with # for comments.
Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;/path/to/may/project1/bin
/path/to/may/project2/bin
!/path/to/may/thirdparty.jar
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please notice that if you're using the 5.4 branch according to &lt;A href="https://jira.nuxeo.com/browse/NXP-7629"&gt;NXP-7629&lt;/A&gt; the automatic hot-reloading (which checks dev bundles every 2 seconds) was disabled by default. To re-activate, just edit the launcher.properties template file and set the timer property org.nuxeo.app.installReloadTimer to true. A JMX a bean is exposed for controlling the reset instead.&lt;/P&gt;
&lt;P&gt;If you ant to use ant to update the dev.bundles file, you can use something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;target name="hotreload"&amp;gt;
        &amp;lt;condition property="file.matches"&amp;gt;
            &amp;lt;resourcecontains resource="${nxserver.dir}/dev.bundles" substring="${basedir}/target/classes" /&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;antcall target="update-dev-bundles"/&amp;gt;
        &amp;lt;antcall target="touch-dev-bundles"/&amp;gt;
    &amp;lt;/target&amp;gt;

    &amp;lt;target name="update-dev-bundles" unless="file.matches"&amp;gt;
        &amp;lt;echo message="Adding ${basedir}/target/classes to dev.bundles"/&amp;gt;
        &amp;lt;echo file="${nxserver.dir}/dev.bundles" append="true"
              message="${basedir}/target/classes"/&amp;gt;
    &amp;lt;/target&amp;gt;

    &amp;lt;target name="touch-dev-bundles"&amp;gt;
        &amp;lt;touch file="${nxserver.dir}/dev.bundles"/&amp;gt;
    &amp;lt;/target&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Oct 2011 11:10:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328322#M15323</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2011-10-12T11:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to hot reload bundles without Nuxeo IDE?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328323#M15324</link>
      <description>&lt;P&gt;Note&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 11:39:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328323#M15324</guid>
      <dc:creator>Olivier_Grisel</dc:creator>
      <dc:date>2011-10-12T11:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to hot reload bundles without Nuxeo IDE?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328324#M15325</link>
      <description>&lt;P&gt;I've only seen the sdk profile in 5.4.3-I20111003_1046 will it be backported in a HF?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 11:46:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328324#M15325</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2011-10-12T11:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to hot reload bundles without Nuxeo IDE?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328325#M15326</link>
      <description>&lt;P&gt;No as this is not a bugfix.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 12:11:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328325#M15326</guid>
      <dc:creator>Olivier_Grisel</dc:creator>
      <dc:date>2011-10-12T12:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to hot reload bundles without Nuxeo IDE?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328326#M15327</link>
      <description>&lt;P&gt;Well, I've got the hot reload working... should it run the deployment fragment and do a Seam hot reload as well ? It not a sample build.xml with these tasks would be great!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 16:50:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328326#M15327</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2011-10-12T16:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to hot reload bundles without Nuxeo IDE?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328327#M15328</link>
      <description>&lt;P&gt;I work with nuxeo-dm-5.4.3-I20111024_2229-tomcat.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 22:39:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-hot-reload-bundles-without-nuxeo-ide/m-p/328327#M15328</guid>
      <dc:creator>dario_</dc:creator>
      <dc:date>2011-11-21T22:39:26Z</dc:date>
    </item>
  </channel>
</rss>

