To get the transaction do Transactions.instance() - you need to ask on e.g. an EJB3 forum
about how to control transactions inside a CMT.
You need to ask on the hibernate forum about why .flush() doesn't commit the
transaction if you are curious.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129930#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...