0 Replies Latest reply: Jul 12, 2011 11:23 AM by Reinhard Eder RSS

how to intercept a transaction failure (JBoss 6)

Reinhard Eder Newbie

I don't want a client of a session bean to catch Transaction errors thrown by the application server.

 

So I need the possibility to catch transaction errors. This is done by AOP at JBoss 6.

If I write a "regular" interceptor catching an exception of the invocation of a business method it does not intercept transaction errors, but I want to catch them.

 

I also do not want every business method to make a flush or write an interceptor with BMP that tries to make the transaction and if it fails it creates a message and if it works makes a rollback and reinvokes with CMP: this cannot be good for the performance and it is not very fine.