활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
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.
토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.
조회 수
답글
좋아요 수
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.
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
This one is when all-on-demand enable,
---------------------------------------------------------------------------
This is when using schedular
seems same for both cases