package com.bluesky;
public interface FooServiceIface {
public void insertA();
public void insertB();
}
package com.bluesky
KLE's answer is solid advice. Just to complete the picture, there is a workaround, but it breaks everything AOP stands for:
public void insertA() {
this.getJdbcTemplate().execute("insert student(name) values('stuA')");
// this works, but... gah!
((FooServiceIface) AopContext.currentProxy()).insertB();
int i=10/0;
}
Reference: