I have Stateles bean with method:

  | ...
  |     @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
  |     public void addUser(User user) throws Exception {
  |         try {
  |             em.persist(user);
  |         } catch (Exception e) {
  |             throw e;
  |         }
  |     }
  | ...
  | 
When i call this method from client i recive:

  | java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to 
commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=lserver/662, 
BranchQual=, localId=662] status=STATUS_NO_TRANSACTION; - nested throwable: 
(org.hibernate.exception.ConstraintViolationException: Could not execute JDBC 
batch update)
  | 
Why transaction can't rollback?

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to