Hello there! I have a few questions regarding Transactions on Spring 2.0, hope you guys help me out.
1st. When using @Transactional attribute, I know annotations are not inherited, but we use templates here, so for example:
Will the above work? Will spring respect the new transaction behavior for the new subclass?Code:public class CrudService { @Transactional(propagation = Propagation.REQUIRED) public void save(T entity){...} } public class SpecialCrudService extends CrudService{ @Transactional(propagation = Propagation.MANDATORY) //overridden method public void save(T entity){...} } }
2nd. Is it possible (inside a full jee container like JBoss, or using JOTM) to have JTA transactions that spam multiple resources (JMS and Databases for example)? Will Spring JTA transactions support deal within it? My architecture is based on ActiveMQ for the JMS and MDP
Best Regards
Vinicius


Reply With Quote
