Sling Sitemap schedular not working in Publisher | Adobe Higher Education
Skip to main content
October 30, 2023

Sling Sitemap schedular not working in Publisher

  • October 30, 2023
  • 1 답변
  • 575 조회

We are using Apache sling sitemap scheduler but its not working, I am on 6.5 SP16.

All on demand configuration works fine in author.

I created config.publish config in author and published as below:

 

its available in publisher.

I am not seeing, that this scheduler is getting executed after every 3 mints in publisher.

 

 

My custom sitemap generator is as below:

 

import org.apache.sling.sitemap.spi.generator.ResourceTreeSitemapGenerator;
import org.apache.sling.sitemap.spi.generator.SitemapGenerator;
@8220494(service = SitemapGenerator.class)
@Slf4j
public class SitemapGeneratorImpl implements SitemapGenerator {
@9944223
  public void generate( Resource resource,
       String name,
       Sitemap sitemap,
       Context context) throws SitemapException {
   // logic to add url in sitemap
   }    
}
 
I am running Publisher in debug mode and I am observing that sometime OOTB ProductsSitemapGenerator is getting triggered sometimes(that time also i dont see my schedular is getting triggered) but call is never coming to my custom SitemapGeneratorImpl.
 
I have followed below thread but no luck
 
can someone please help.
 
Thanks in Advance.
이 주제는 답변이 닫혔습니다.

1 답변

kautuk_sahni
Community Manager
Community Manager
November 23, 2023

@archanasi If you have found out solution yourself, please share it with the community.

Kautuk Sahni