Skip to Content
author's profile photo Former Member
Former Member

Why to create a service layer job and what is the use of that job?.Can anyone please tell me

I have created a cronjob and the result of the job should hold the values for the product in .csv but I have seen that while creating a job there is something called service layer job.why to create a service layer job?can we create a cronjob directly?Can anyone please explain me?

Add a comment
10|10000 characters needed characters exceeded

  • Former Member

    Since, you have already created a class implementing the JobPerformable interface, you don't have to create a service layer job. During the phase of essential data creation, for each Spring definition of a class implementing the JobPerformable interface, a ServicelayerJob instance gets created and the code attribute of the job is set to the name of the Spring bean.

    Please go through https://wiki.hybris.com/display/R5T/Trail+~+CronJobs for more information regarding this

Assigned Tags

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.