lifeTech
lifeTech

Reputation: 17

Alfresco configurations

Is there a way to automatically refresh the changes I made in my java classes once I ran my alfresco repository in eclipse ? Because it is very time consuming to stop my tomcat, make changes in my classes and re run it then test the changes I made.

Is there a way to configure it ?

Upvotes: 0

Views: 83

Answers (1)

Krutik Jayswal
Krutik Jayswal

Reputation: 3175

Yes there is way, If you are using SDK 3.0 you need to configura hotswap agent.

Below link will help you in that.

https://docs.alfresco.com/community/tasks/sdk-hot-reload-hotswap.html

You can configure hotswap agent in eclipse also.same add same configuration in eclipse (Run Configuration->Maven Build->New Build)

  • add goals as clean install alfresco:run
  • In jre tab add this configuration In VM arguments field ==> -javaagent:[path]hotswap-agent.jar
  • Run it.

In case of SDK 2.0 you need to use spring-loaded jar instead of hotswap agent.Configuration steps are almost same except the goals.

Upvotes: 4

Related Questions