Anoop wrote:

> Hi,
> 
> I am trying with container managed transaction but was not able to get the
> desired output. As all the exceptions thrown are Application exceptions and
> container will not rollback automatically when an application exception is
> thrown. How to force the container to rollback when an Application exception
> is thrown??

The container must not rollback automatically when an Application 
exception is thrown. Read the section of exception handling in the spec. 
Either call setRollbackOnly() when you throw the exception (or throw a 
non-application exception, but that'll suck for your client)



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

Reply via email to