cancel
Showing results for 
Search instead for 
Did you mean: 

Hot deployment for Share webscript and Java based Webscript

ratik_singhal
Star Contributor
Star Contributor

Hello All,

I am using Alfresco All-In-One (alfresco-allinone-archetype) maven based project. I am using community version.

I would like to know how to make the project (using eclipse) Hot deployment. I have read the article - Rapid Application Development in Eclipse (Hot reloading) | Alfresco Documentation but I did not work for me. I don't know how to enable RAD in eclipse

Enabling Rapid Application Development (RAD) in Eclipse.

  1. This is enabled by default and there is no specific configuration needed. If you want to have more control over when web applications are refreshed, then see the last tutorial about Run Configurations.

Testing RAD when doing Repository customizations (alfresco.war).

Every time I have to stop the server and run the command .run/sh for a small change in webscript or ftl file. Because of this development is very slow.

Earlier I have worked on Separate AMPs and Even you can change directly in Webapps so Develpment was a little bit faster.

Help is much needed and appreciated. 

17 REPLIES 17

Hi Krutik Jayswal

Hot deployment doesn't work on community version?

It works for community version!...there must be something which you are missing.For what things you are expecting hot deployment?XML hot reloading will not work.

Krutik Jayswal

in the latest SDK release 2.2.0 you could no longer use Spring Loaded for hot reloading of stuff in alfresco.war.

Yes spring loaded is no longer used in SDK 3.0.0 and 3.0.1.In the latest version, hot swap is being used.

Using <version>3.0.2</version>

But hard luck. 

you are using hot-swap.jar for hot reloading correct?

Yes, I have tried two version 1.3.0 and 1.1.0

Releases · HotswapProjects/HotswapAgent · GitHub 

For hot reloading in share need to add below configuration in share-config-custom.xml

<config evaluator="string-compare" condition="WebFramework">
      <web-framework>
         <autowire>
             <mode>development</mode>
         </autowire>
      </web-framework>
</config>