[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Unable to locate current JTA transaction

kgrjb do-not-reply at jboss.com
Tue Mar 27 03:11:22 EDT 2007


hibernate 3.2.*
jboss 4.0.5.GA

im getting the same "unable to locate jta transaction"  @TransactionAttributeType.SUPPORTS but not with @TransactionAttributeType.REQUIRED on ejb 3 session bean[slsb].

i use getCurrentSession().

i understand hibernate session needs a transaction but what happens when you need to mark something as read only.

as i understand the only way to mark this is by using @TransactionAttributeType.SUPPORTS. 

is there a way to tell a hibernate session that it should be readonly so that the session doesnot look for a transaction? any work around this if you really need to use @TransactionAttributeType.SUPPORTS?


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

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



More information about the jboss-user mailing list