This content has been marked as final.
Show 1 reply
-
1. Re: Entity constraint violation - rollback
alrubinger Sep 3, 2006 12:51 AM (in response to peyrusaubes)You should be able to inject the context of your EJB depending upon the type of bean:
@Resource private transient SessionContext ctx;
- or -@Resource private transient EntityContext ctx;
...and call ctx.setRollbackOnly() as appropriate.
S,
ALR