[jboss-user] [EJB 3.0] - Re: Entity constraint violation - rollback

ALRubinger do-not-reply at jboss.com
Sun Sep 3 00:51:29 EDT 2006

You should be able to inject the context of your EJB depending upon the type of bean:

  | 	private transient SessionContext ctx;

- or - 

  | 	private transient EntityContext ctx;

...and call ctx.setRollbackOnly() as appropriate.


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

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

More information about the jboss-user mailing list