AnsweredAssumed Answered

Using CDI from JobExecutor

Question asked by naag on Jul 19, 2012
Latest reply on Aug 3, 2014 by mahavirj
Hi all,

we're looking for ways on how we can make use of CDI services from activities executed by the JobExecutor in JBoss AS 7. In http://forums.activiti.org/en/viewtopic.php?f=6&t=4167 Daniel suggested to write a JCA connector and use @MessageDriven beans. I've never done any JCA connectors before and also I cannot find a lot of documentation about it (maybe looking in the wrong place…). Also we would like to stick to a "pure" JBoss AS 7, so no fox platform ce.

Does anybody have an idea what could be a solution? I was thinking along the lines of having a thread pool provided by JBoss, and then using that instead of the default Java ThreadPool that Activiti uses. But I'm not even sure if that makes sense?

By the way, we're mainly looking to make @Inject work. Of course @RequestScoped and so on won't work.

Thanks for all ideas :-)
Peter

Outcomes