vchmakov [
https://community.jboss.org/people/vchmakov] created the discussion
"Re: Is it possible to integrate CDI beans into script and service tasks within jBPM
5.4?"
To view the discussion, visit:
https://community.jboss.org/message/819907#819907
--------------------------------------------------------------
Hi Guillermo L,
We do as well integrate jBPM with JEE6 and run it under JBoss AS 7. We have a set of
services which we instantiate at startup and then pass into jBPM engine as a global
variable. It is not strictly speaking necessary, though, as the service set container is a
singleton and can be accessed from any participating class. One of the services is a
persistence service. We receive commands via MDB. There is an injection point in the MDB
for the persistence context. Every time a command is invoked we pass the injected instance
to our persistence service and to the Drools/jBPM engine to make them participate in the
container’s transaction. I guess that the similar approach can be used in your case as
well with your CDI beans.
Thanks,
Vladimir
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/819907#819907]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]