is it possible to use custom seam interceptor around invocation of methods of Seam POJO Components?
In the Seam 1.2.1 manual, section 5.2, it is written "You can even use Seam interceptors with JavaBean components, not just EJB3 beans!"
How to do that? is there some sample somewhere?
I tried to use the @Interceptor annotation without success..
My goal is to catch Hibernate exceptions when a method of some component annoted with @Transactional is called, some problem occured and the transaction is rollback, and to "convert" some of them to a business exception...
Make sure you use @Interceptor/@AroundInvoke from Seam not EJB3. There is an example in the docs.