Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.
Niveau 1
Niveau 2
Se connecter à la communauté
Connectez-vous pour voir tous les badges
Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.
Hi all,
i am using schedular to generate sitemap,but I am not able to adapt ca-config at the time of schedular,
But in case of All-on-demand it working,
Please help me to resolve this problem.
Les sujets facilitent la catégorisation du contenu de la Communauté et vous aident à retrouver le contenu le plus pertinent.
Vues
Réponses
Nombre de J’aime
HI @neeraj_24412
How're you trying to adapt ca-config for sitemap scheduler?
HI @Himanshu_Singhal,
So I need to create sitemap for multi site,
public String getSiteUrl(Resource resource) {
final GlobalConfiguration globalConfiguration = resource.adaptTo(ConfigurationBuilder.class)
.as(GlobalConfiguration.class);
return StringUtils.isNotBlank(globalConfiguration.siteHostUrl()) ? globalConfiguration.siteHostUrl() : "";
}This is the output with schedular
and without schedular it's working fine
here is my ca-config
Can you tell or add screenshot here that how are you getting the resource which you are passing to addResource Method?
Thanks,
Nupur
Can you check which resource is passed to the method while calling the from scheduler ?
Check if both the resources are same in On-demand and from scheduler.
Hi @Mani_kumar_ Yeah it's same in both
Vues
Réponses
Nombre de J’aime
Below thread explains on the permissions that needs to /conf folder, could you please check if you have enough permissions to read the resource.
If not provide the required permissions and restrict it through the dispatcher.
Hope this is helpful
@Mani_kumar_ I am using this in author instance!
I don't think we need any permission
Can you check if your GlobalConfiguration is null, if resource is same in both the scenarios then it should not be null. Log the resource path and check once.
Yeah it's null any solution for this?
It is null for all-on-demand too
but somehow I am able to get values from ca-config in the case of all-on-demand
What is resource path in both cases?
This one is when all-on-demand enable,
---------------------------------------------------------------------------
This is when using schedular
seems same for both cases
Vues
Likes
Réponses
Vues
Likes
Réponses