OSGI Configuration for Apache Sling Job Queue Configuration | Community
Skip to main content
February 14, 2024
Solved

OSGI Configuration for Apache Sling Job Queue Configuration

  • February 14, 2024
  • 1 reply
  • 1744 views

Hi,

I have a requirement where I am using a job manager to add a job with a custom topic. Also there is a consumer which has the business logic.

Currently when the job fails, it retries for 10 times with an interval of 1 second. This is because of the default Sling Job Queue Configuration.

 

Now, I want to have my own custom Sling Job Queue Configuration with retry intervals and number of retries. For this, I have created the configuration manually from system console for the specific topic and it is working and picking this custom configuration when the job is failed. But, when I create the same configuration as part of code repo and when deployed, this configuration is not getting picked. And the way this configuration looks is completely different from the one created through system console. Below screenshots are the one created in system console and other deployed through code.

 

 

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 somen-sarkar

Hi @jayan_acharya76 ,

What is the naming convention followed while importing the config in codebase ? 

 

OSGi configuration factory file names should  use the <factoryPID>-<name>.cfg.json naming convention.   Hope this will help in resolving the same. 

 

Ref :- https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/deploying/configuring-osgi.html?lang=en

 

Thanks,

Somen

1 reply

somen-sarkar
Community Advisor
somen-sarkarCommunity AdvisorAccepted solution
Community Advisor
February 14, 2024

Hi @jayan_acharya76 ,

What is the naming convention followed while importing the config in codebase ? 

 

OSGi configuration factory file names should  use the <factoryPID>-<name>.cfg.json naming convention.   Hope this will help in resolving the same. 

 

Ref :- https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/deploying/configuring-osgi.html?lang=en

 

Thanks,

Somen

February 15, 2024

Thank you somen-sarkar.

 

It worked.

kautuk_sahni
Community Manager
Community Manager
June 7, 2024

@jayan_acharya76 I hope the AEM community has been helpful. We look forward to your return as either a learner or a contributor. The community grows with SMEs like you. Invite your AEM peers to contribute too. Happy AEM learning!

Kautuk Sahni