[rules-users] Drools Flow in EJBs

tizo tizone at gmail.com
Mon Nov 1 11:26:32 EDT 2010


On Wed, Oct 27, 2010 at 5:21 PM, tizo <tizone at gmail.com> wrote:

> Hi there,
>
> I have seen in chapter 6 of the documentation, that Drools Flow can be
> configured to use JPA and transactions to persist the running states.
> However, I am in a EJB where I obtain entity managers with a
> @PersistenceContext annotation, and the transactions are managed by the
> container, whereas in the example an EntityManagerFactory and a
> TransactionManager are used.
>
> Could I configure Flow in a direct way to be used by my EJB?
>
> Thanks very much,
>
> tizo
>
>
Ok, looking at the code, I guess that Drools flow is not ready to work with
standards EJBs. The reasons are the following:

 * The JPA annotations are not standard JPA annotations, but hibernate ones.
For example "CollectionOfElements" in ProcessInstanceInfo class.
 * Transactions are managed by Drools, as opposed to some EJBs where
transactions are managed by the container.

As for that, I will probably modify the codes, so Flow could be used in our
EJBs. I would like to know if someone could guide me on what should I
modify.

I will post the modifications in case they are of interest to someone.

Thanks very much,

tizo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101101/c1325250/attachment.html 


More information about the rules-users mailing list