Jure Lodrant wrote:

> Dne četrtek 05 julij 2001 18:45 ste napisali:
> 
> 
> setRollbackOnly is used in EJB's using Container managed transactions which 
> is not the case here.
> 


If you're trying to do Bean managed transactions, you need to read up on 
how to do it. See section 11.3.3 of the EJB 1.1 spec, or section 17.3.3 
of the EJB 2.0 pfd 2 spec.

In short, you need to use a UserTransaction object that you get from 
your EJBContext. Note that the example in the 2.0 spec won't work in 
JBoss at the moment - you need to begin the transaction before getting 
your connections.

-danch




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to