The flush to DB automatically happens on a tx commit. So the exception happens 
during the onCommit callbacks of tx. If you want the DB operation to be run 
immidiately, then use the flush() to explicitly flush it to DB and catch the 
exception:

  | onMessage()
  | {
  | 
  |  try 
  |  {
  |     em.update...(...);
  |  
  |    // flush
  |    em.flush();
  |  }
  |  catch (Exception e)
  |  {
  |     ...
  |  }
  | 
  | }

 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252983
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to