Sling Engine (Apache Sling Engine Implementation) bundle restart | Community
Skip to main content
Level 2
June 7, 2023
Solved

Sling Engine (Apache Sling Engine Implementation) bundle restart

  • June 7, 2023
  • 4 replies
  • 1348 views

Hello,

 

Could you please let me know if restarting the Sling Engine (Apache Sling Engine Implementation) bundle alone will lead to any unexpected behavior?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sady_Rifat

Exactly. All the Activate methods will be reinitiated and their reference objects will be mismatched. That's why there is a chance to show some unexpected behavior.

4 replies

Umesh_Thakur
Community Advisor
Community Advisor
June 7, 2023

until all dependencies are resolved, there should not be any issue. if you face any please try to see after restarting the instance.

Hope this helps

Umesh Thakur

Sady_Rifat
Community Advisor
Community Advisor
June 7, 2023

hello @aem_raw ,
It's not recommended to restart the single bundle because it might cause some unexpected behavior like Dependency Impact or other. If so you need to restart the entire application server.
But the chance of this occurrence is rare and you may take this chance. After all by following the recommended way you definitely need to restart the server.

HeenaMadan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 7, 2023

If all required depencies are resolved then there wouldn't be any issue to restart single bundle. If depdencies are not resolved then it might impact. 

aem_rawAuthor
Level 2
June 7, 2023

Thank you all for your replies! The whole point of restarting the bundle alone is to avoid the AEM restart. Say, if I have Bundle A which creates a value using a service from Bundle B in the Activate method and save value in static variable. If I restart Bundle B, does values associated with the static variable in Bundle A will get affected because Bundle A depends on Bundle B?

Sady_Rifat
Community Advisor
Sady_RifatCommunity AdvisorAccepted solution
Community Advisor
June 8, 2023

Exactly. All the Activate methods will be reinitiated and their reference objects will be mismatched. That's why there is a chance to show some unexpected behavior.