[jboss-user] [jBPM] - Re: Is it possible to integrate CDI beans into script and service tasks within jBPM 5.4?

vchmakov do-not-reply at jboss.com
Tue May 28 10:46:24 EDT 2013


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&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130528/f1fa8a6d/attachment.html 


More information about the jboss-user mailing list