Need help on the below Deprecated API in 6.4 migration

Avatar

Avatar
Validate 1
Level 1
Rajesh_Kamalath
Level 1

Like

1 like

Total Posts

17 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Rajesh_Kamalath
Level 1

Like

1 like

Total Posts

17 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Rajesh_Kamalath
Level 1

13-03-2019

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

   

        }

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 7
Prince_Shivhare
Level 7

Likes

122 likes

Total Posts

403 posts

Correct reply

65 solutions
Top badges earned
Springboard
Establish
Give Back 100
Boost 100
Validate 1
View profile

Avatar
Springboard
Level 7
Prince_Shivhare
Level 7

Likes

122 likes

Total Posts

403 posts

Correct reply

65 solutions
Top badges earned
Springboard
Establish
Give Back 100
Boost 100
Validate 1
View profile
Prince_Shivhare
Level 7

13-03-2019

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
Rajesh_Kamalath
Level 1

Like

1 like

Total Posts

17 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Rajesh_Kamalath
Level 1

Like

1 like

Total Posts

17 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Rajesh_Kamalath
Level 1

14-03-2019

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);