<?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: SDK3 - HOTSWAP - Doesn't work in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/sdk3-hotswap-doesn-t-work/m-p/30825#M13093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK with hotswap agent you will be only able to hot reload thing which are not modifying the schema of classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you are modifying the code inside method it will work.But if you are renaming/adding new method&amp;nbsp;then it will not be able to reload it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use jrebel for that i guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Nov 2017 13:11:27 GMT</pubDate>
    <dc:creator>krutik_jayswal</dc:creator>
    <dc:date>2017-11-28T13:11:27Z</dc:date>
    <item>
      <title>SDK3 - HOTSWAP - Doesn't work</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk3-hotswap-doesn-t-work/m-p/30824#M13092</link>
      <description>Hi, Hotswap seen doesn't work on any artifact genration : HOTSWAP AGENT: 15:37:42.619 RELOAD (org.hotswap.agent.config.PluginManager) - Reloading classes [com.xxx.xx.controller.SiteCustomPostController] (autoHotswap)Exception in thread "Thread-240" java.lang.IllegalStateException: Unable to redefine</description>
      <pubDate>Fri, 24 Nov 2017 14:41:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk3-hotswap-doesn-t-work/m-p/30824#M13092</guid>
      <dc:creator>gawel</dc:creator>
      <dc:date>2017-11-24T14:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: SDK3 - HOTSWAP - Doesn't work</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk3-hotswap-doesn-t-work/m-p/30825#M13093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK with hotswap agent you will be only able to hot reload thing which are not modifying the schema of classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you are modifying the code inside method it will work.But if you are renaming/adding new method&amp;nbsp;then it will not be able to reload it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use jrebel for that i guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 13:11:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk3-hotswap-doesn-t-work/m-p/30825#M13093</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2017-11-28T13:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: SDK3 - HOTSWAP - Doesn't work</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/sdk3-hotswap-doesn-t-work/m-p/30826#M13094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thinks you for your response. &lt;/P&gt;&lt;P&gt;I know this point. Step to reproduce :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) create javadir-context.xml with this content :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;beans xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:context="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/context" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/context&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xsi:schemaLocation="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans/spring-beans-2.5.xsd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans/spring-beans-2.5.xsd&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/context" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/context&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/context/spring-context-2.5.xsd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/context/spring-context-2.5.xsd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;context:component-scan base-package="com.xx.ged" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;context:annotation-config /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/beans&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Create Class :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;@Component&lt;BR /&gt;public class YourClass{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Autowired&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SiteBusiness siteBusiness;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void importCsvDataToAlfresco(String text) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("This is message from Alfresco : " + text);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Start embedded server with hotswap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) change the content text of printLn, and you have this error :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Exception in thread "Thread-240" java.lang.IllegalStateException: Unable to redefine classe&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:10:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/sdk3-hotswap-doesn-t-work/m-p/30826#M13094</guid>
      <dc:creator>gawel</dc:creator>
      <dc:date>2017-11-28T16:10:39Z</dc:date>
    </item>
  </channel>
</rss>

