[jboss-user] [Persistence] - Re: Simple JPA question
juicebox
do-not-reply at jboss.com
Mon Sep 28 12:18:29 EDT 2009
I think that's because you're looking up the remote interface of userEao.
Based on my experience, every single invocation to a remote interface (despite the target session bean is in the same environment) creates a new transaction/entitymanager, so the behavior you described above makes sense.
If you want all your code to span a single transaction just try pulling the local interface from JNDI.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257434#4257434
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257434
More information about the jboss-user
mailing list