AnsweredAssumed Answered

Injecting a spring bean to a task listener

Question asked by romschn on Apr 19, 2012
Latest reply on Apr 18, 2014 by bhavikp
Hi,

I have a mailBean which is configured as below in a spring context file.
<bean id="mailBean"   class="com.utils.MailBean" >
      <property name="mailService">
          <ref bean="mailService"/>
       </property>
   </bean>

In my activiti workflow process definition, I am using a task listener class - TestListener extends ScriptTaskListener.

Now, I want to inject the email bean to this listener class. I am not finding any way of doing this.

Could someone please help me on this at the earliest.

Thanks,

Outcomes