环境:Weblogic,Spring,Hibernate和EJB
代码:
public class ServiceImpl
{
@Transactional
public void test()
{
throw new ArrayIndexOutOfBoundsException();
}
}
public class WebLayerClass
{
service.test();
}
当我运行它时,我得到UnexpectedRollbackException而不是ArrayIndexOutOfBoundsException
"org.springframework.transaction.UnexpectedRollbackException: JTA transaction already rolled back (probably due to a timeout)"