Whether your EntityManager is injected or not has nothing to do with your 
ability to catch an exception.

You can do this:


  | try {
  |   em.persist(user);
  | } catch (Throwable t) {
  |   if (t instanceof TheExceptionIAmWantToHandleLaterException) {
  |     ...
  |   } else {
  |     ...
  |   }
  | }
  | 

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

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


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to