The call that I am making is the same as getCurrentSession(); I had just 
written this code before I was aware of that method.  I have since switched to 
calling getCurrentSession().

To fix this code, I changed the transactionality of the EJB from Supports to 
type="Required" - supports indicates that if a transaction already exists, I 
will take part in it, required creates a transaction if one does not already 
exist, but if one exists, it simply joins it.

If you use getCurrentSession, you must require a transaction exists.

I hope that helps!

- John

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882130#3882130

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882130


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to