Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransactionalInterceptor should be executed around other interceptors #4

Open
agori opened this issue May 29, 2014 · 4 comments
Open
Labels

Comments

@agori
Copy link
Contributor

agori commented May 29, 2014

EJB interceptors of a transactional EJB bean should be executed inside the same transaction of the intercepted bean. In BeanTest this doesn't happen because it seems that the TransactionalInterceptor is executed before application specific interceptors.

If the application specific interceptor works with the EntityManager, you get

javax.persistence.TransactionRequiredException: no transaction is in progress
@carlosbarragan
Copy link
Member

We need to take a look at this. Maybe we need global interceptors to achieve this functionality.

@bbq2100
Copy link
Contributor

bbq2100 commented Nov 2, 2014

@carlosbarragan a word and a blow 😉 Please have a look in #10.

@agori
Copy link
Contributor Author

agori commented Nov 10, 2014

This commit fixes the reported problem but opens another one: @ExcludeClassInterceptors is no more working and I suspect that per method EJB interceptors are not working as well.Thanks to the Murphy's Law, I have both ;)

@bbq2100
Copy link
Contributor

bbq2100 commented Nov 10, 2014

Hi @agori, thx for your fast feedback :) I will asap fix my shortcomings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants