Hi, I try to use the CommitAfter on a GenericDao, but the method does not commit the transaction. Does it exists a worcaround to do that?
This is the code: public interface GenericDao<T> { @CommitAfter public void save(T entity); } public abstract class GenericDaoImpl<T> { @Override public void save(T entity) { entityManager.persist(entity); } } public interface UserDao extends GenericDao<User> { } public class UserDaoImpl extends GenericDaoImpl<User> implements UserDao { } and respective advisor in AppModule: @Match("*Dao") public static void adviseTransactions(JpaTransactionAdvisor advisor, MethodAdviceReceiver receiver) { advisor.addTransactionCommitAdvice(receiver); } if I place the save() function into the UserDao all works fine. Thanks in advice Eugen --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org