cancel
Showing results for 
Search instead for 
Did you mean: 

How to make labels available for cronjob

former_member640268
Participant
0 Kudos

Hi folks

I created a backoffice-wizard doing some things for a lot of products. Last step is showing the result of the work. The displayed texts are coming from ...label.properties files

In order to avoid timeout-problems, I transferred the last step to a cronjob. But unfortunately within the cronjob-environment, the available labels are quite different. Very strange: Obviously only labels from ext-content/productcockpit/web/webroot/WEB-INF/i3-label.properties are available.

Question: How to make my labels available to cronjob?

Thanks in advance, Heiko

Accepted Solutions (1)

Accepted Solutions (1)

former_member632755
Active Contributor
0 Kudos

Hi,

in general the cron job runs outside the backoffice context (Spring), therefore you cannot use the LabelService backoffice provides and cannot reach to the bundles defined for the backoffice. I think that the only option would be to pass the required labels to the business logic while triggering the job.

Cheers, Wojtek

Answers (0)