hi, can you share the whole stack please?
*Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2012/10/29 knak55 <[email protected]> > Hi, > > I am trying to migrate an application which works on Glassfish 3.1.2.2 to > TomEE 1.5. > The application calls each component like this : JSF -> CDI -> Stateless > EJB -> JPA -> DB > On the Glassfish, a program(CDI) in the web tire can handle the > “OptimisticLockException” with the following code successfully. > > : > } catch (Exception e) { > if (e.getCause() instanceof > javax.persistence.OptimisticLockException) { > : > > However, on the TomEE 1.5, we got javax.transaction.RollbackException > instead of > javax.persistence.OptimisticLockException. > > How can I catch “OptimisticLockException” in the CDI? > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/How-can-I-catch-OptimisticLockException-tp4658313.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
