Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

OSGI Configuration for Apache Sling Job Queue Configuration

Avatar

Level 1

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.

jayan_acharya76_0-1707881904623.png

 

jayan_acharya76_1-1707881954196.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/deploy...

 

Thanks,

Somen

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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/deploy...

 

Thanks,

Somen

Avatar

Administrator

@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