| From | Sent On | Attachments |
|---|---|---|
| glas...@javadesktop.org | Jun 11, 2010 6:13 pm | |
| glas...@javadesktop.org | Jun 11, 2010 6:25 pm | |
| glas...@javadesktop.org | Jun 14, 2010 6:54 am | |
| glas...@javadesktop.org | Jun 14, 2010 7:09 am | |
| glas...@javadesktop.org | Jun 14, 2010 7:17 am | |
| glas...@javadesktop.org | Jun 14, 2010 6:32 pm | |
| glas...@javadesktop.org | Jun 14, 2010 7:03 pm | |
| glas...@javadesktop.org | Jun 14, 2010 7:03 pm | |
| glas...@javadesktop.org | Jun 15, 2010 3:21 pm | |
| glas...@javadesktop.org | Jun 15, 2010 5:05 pm | |
| glas...@javadesktop.org | Jun 15, 2010 5:23 pm | |
| glas...@javadesktop.org | Jun 15, 2010 6:59 pm | |
| glas...@javadesktop.org | Jun 16, 2010 9:53 am | |
| glas...@javadesktop.org | Jun 16, 2010 10:17 am |
| Subject: | Re: JCA question regarding transactions | |
|---|---|---|
| From: | glas...@javadesktop.org (glas...@javadesktop.org) | |
| Date: | Jun 14, 2010 7:03:08 pm | |
| List: | net.java.dev.glassfish.users | |
If your concern is diffrent, please explain in more details :).
OK. This is an old article, and it's using Drools 4, not 5, and Hibernate, not
JPA, but you can sort of see what I was hoping was possible.
In it, the guy sets up a Hibernate session, then passes it in to Drools. Drools
is able to use the Hibernate session to create queries and whatnot and provide
facts to reason over.
At the end of the day, Drools "returns", and the code that set up the Hibernate
session then closes it.
I'm looking to do the same thing, but in a spec compliant way.
So my Drools KnowledgeBase comes from a resource adapter. Instead of a
Hibernate session I have a container-supplied EntityManager. Instead of closing
the session I just let the transaction governing my EJB to complete normally.
I hope that helps.
best, Laird [Message sent by forum member 'ljnelson']





