急!!spring+flex,使用注解事务不成功?
yadg 2014-08-18 05:31:05 我有个业务,有类似下面的类,
@Service("customerService")
@RemotingDestination
public class CustomerService {
@RemotingInclude
@Transactional(rollbackFor=Exception.class,propagation=Propagation.REQUIRED)
public int add(String uId, String name){
coinDao.save(uId,name);
if(true)throw new Exception("回滚");
}
}
怎么一直都不回滚,请问该怎么办啊?