atom feed14 messages in net.java.dev.glassfish.usersRe: JCA question regarding transactions
FromSent OnAttachments
glas...@javadesktop.orgJun 11, 2010 6:13 pm 
glas...@javadesktop.orgJun 11, 2010 6:25 pm 
glas...@javadesktop.orgJun 14, 2010 6:54 am 
glas...@javadesktop.orgJun 14, 2010 7:09 am 
glas...@javadesktop.orgJun 14, 2010 7:17 am 
glas...@javadesktop.orgJun 14, 2010 6:32 pm 
glas...@javadesktop.orgJun 14, 2010 7:03 pm 
glas...@javadesktop.orgJun 14, 2010 7:03 pm 
glas...@javadesktop.orgJun 15, 2010 3:21 pm 
glas...@javadesktop.orgJun 15, 2010 5:05 pm 
glas...@javadesktop.orgJun 15, 2010 5:23 pm 
glas...@javadesktop.orgJun 15, 2010 6:59 pm 
glas...@javadesktop.orgJun 16, 2010 9:53 am 
glas...@javadesktop.orgJun 16, 2010 10:17 am 
Subject:Re: JCA question regarding transactions
From:glas...@javadesktop.org (glas@javadesktop.org)
Date:Jun 15, 2010 6:59:46 pm
List:net.java.dev.glassfish.users

I'm not sure what you mean. Neither of them by themselves affects anything. A
KnowledgeBase produces sessions of either a stateful or stateless variety. In
my case, I'm using a stateful session for lots of reasons, but you'll notice
it's fully disposed of, rendering its lifetime equal to the lifetime of the EJB.

So, again, all they do is take facts (insert()ed by the bean) and evaluate them
against rules (glorified patterns), and, if they match, the rules' consequences
are run. The rule consequences can do pretty much anything they want--they're
just Java.

As it happens, none of my rule consequences do anything that lasts beyond the
lifespan of the session [i]except[/i]--perhaps--interacting with the supplied
EntityManager.

The EntityManager, of course, is handed to the rules engine as you can see from
the EJB that houses both.

Again, I'm curious about what happens when a resource adapter that is declared
to have no transaction support is used by a bean that is declared to require a
transaction, especially when edge cases crop up like this one--where we pass in
an artifact from EJB land into Resource Adapter land.

Best, Laird [Message sent by forum member 'ljnelson']

http://forums.java.net/jive/thread.jspa?messageID=474417