AnsweredAssumed Answered

custom spring context loder

Question asked by activitinike on May 9, 2016
Latest reply on May 12, 2016 by activitinike
Hello,

Please guide on setting custom spring context in activiti-app.war.

In SericeTask javaDelegate, we have many dependencies to inject (RestTemplate, some DAO etc..)


<context-param> 
        <param-name>contextConfigLocation</param-name> 
        <param-value>/WEB-INF/classes/applicationContext.xml</param-value> 
    </context-param> 

   <listener> 
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 
    </listener>


I tried to add spring context loader, but autowiring always return null onject.

Thanks for any help.

Outcomes