Need help on the below Deprecated API in 6.4 migration | Community
Skip to main content
Level 2
Mar 13, 2019 10:54 AM UTC
Solved

Need help on the below Deprecated API in 6.4 migration

Hi Team,

Currently I am on the migration of AEM 6.1 to 6.4. The below deprecated api code need to replace in my java class. kindly help me on this.

@Deprecated public static void processJob(org.osgi.service.event.Event job, JobProcessor processor)

Deprecated. - Use the new JobConsumer interface instead.

Process a job in the background and notify its success. This method also sends an acknowledge message to the job event handler.

JobUtil.processJob(event, this);

if(StringUtil.isBlank(localEvent)){

        JobUtil.processJob(event, this); // this is  the line i need replace in handleEvent(Event event) method

   

        }

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Level 2
Mar 14, 2019 9:47 AM UTC

Hi Prince,

I already Identified JobConsumer Interface need to use, but I didn't  find any method/reference in the jobConsumer. My need here is to replace below line, Please let me know if you have any idea onthis. Thanks

   JobUtil.processJob(event, this);

Translate
Prince_Shivhare
Prince_ShivhareAccepted solution
New Participant
Mar 13, 2019 11:07 AM UTC