-
1. Re: does any transaction attribute works in jboss 3.2.1????
juha Feb 12, 2004 3:18 AM (in response to saroramki)Where in your code do you call setRollbackOnly() ?
-
2. Re: does any transaction attribute works in jboss 3.2.1????
saroramki Feb 13, 2004 3:10 PM (in response to saroramki)thanks Juha for your reply
I don't call setRollbackOnly() anywhere. wondering why should I need to explicitly do this way when I rely on container to handle the transaction. I specify my transaction parameter and I expect container to fulfill
as per EJB Spec, if there is any prob with the transaction I expect the container to roll back the txn right?
In my initial mail i've even included the jdbc way of handling and facing failure at that place.. let us leave that part and assume I do only in the EJB way.. i.e declarative transaction way.. I declare what kinda txn I need and I expect the container to handle the txn. I'm now wondering do i've to call setRollbackOnly() in this case
thanks in advance
saro -
3. Re: does any transaction attribute works in jboss 3.2.1????
juha Feb 13, 2004 10:59 PM (in response to saroramki)The container can automatically rollback only in case of a runtime exception (as per the spec). With a checked exception you must explicitly tell the container that you want the transaction to be rolled back.