AnsweredAssumed Answered

Retrieve Spring Bean in CDI environment

Question asked by daniel1 on Jan 20, 2012
Latest reply on Jan 24, 2012 by meyerd

we have written quite a few spring beans in the past and would like to reuse those in a activiti project. Therefore i declared them in activiti.cfg.xml.
Naively I tried to resolve them using @Named annotation in my backingbean using JBoss AS/Weld. This - as I learned - isn't working out of the box. Now one solution could be to write my own CDI Extension, which would, to my understanding, create a second spring container including processEngine.

So my question now is how can i reuse the processEngine CDI Extension org.activiti.cdi.impl.ActivitiExtension to get access to the spring context. How do other people solve that spring cdi gap?

thx in advance,