Sling Engine (Apache Sling Engine Implementation) bundle restart | Community
Skip to main content
Level 2
Jun 7, 2023 2:38 AM UTC
Solved

Sling Engine (Apache Sling Engine Implementation) bundle restart

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.
Sady_Rifat
Sady_RifatAccepted solution
New Participant
Jun 8, 2023 6:29 AM UTC

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.

5 replies

aem_rawAuthor
Level 2
Jun 7, 2023 9:48 PM UTC

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?

Translate
Sady_Rifat
Sady_RifatAccepted solution
New Participant
Jun 8, 2023 6:29 AM UTC

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.

Translate
HeenaMadan
New Participant
Jun 7, 2023 10:39 AM UTC

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. 

Translate
Sady_Rifat
New Participant
Jun 7, 2023 7:34 AM UTC

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.

Translate
Umesh_Thakur
New Participant
Jun 7, 2023 5:18 AM UTC

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

Translate