Jahia Dev Forum > Override Image processing...

0 (0 Good)
0 (0 Bad)

Override Image processing service

by  bharatkasodariya »  2016/02/17 07:41

checked below link to change image processing service.

http://www.jahia.com/get-started/for-developers/developers-techwiki/services/images-processing

 

Is it possible to override existing jahia image processing service by defining custom service bean to store and manipulate image in custom way. Can it be defined like 

  1. imageService = CustomImageService.

where CustomImageService is

public class CustomImageService extends AbstractImageService {

......

I have tried to define custom bean in 

digital-factory-config --> jahia --> applicationcontext-custom.xml

but it throws class not found exception during bean creation. class is defined inside custom module which is added as jar in module dir.

  (bharatkasodariya)

Number of messages  57
Registration date
0 (0 Good)
0 (0 Bad)

Re: Override Image processing service

by  shyrkov »  2016/02/23 08:08

Hello,

the image service lookup the bean in the main (core) Spring application context, but not in modules. So, the bean class should be in the Web application classloader (WEB-INF/classes or WEB-INF/lib) to avoid clas not found exception.

 

Kind regards

Sergiy

  • Re: Override Image processing service
    2016/02/23 08:08

    shyrkov <p>Hello,</p> <p>the image service lookup the bean in the main (core) Spring application context, but not in modules. So, the bean class should be in the Web application classloader (WEB-INF/classes or WEB-INF/lib) to avoid clas not found exception.</p> <p>&nbsp;</p> <p>Kind regards</p> <p>Sergiy</p>

  • Number of messages  407
    Registration date Feb 23, 2016
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page