@Service
public class SampleClass implements SampleInterface{
@Transactional
public void methodA(){
SampleClass bean = ApplicationContext.getBean(SampleClass.class);
bean.methodB();
}
@Transactional
public void methodB(){
//statements.
}
}
is there any problem calling methodB() like that in the same class? I see lot of code like that. I don’t feel it is the right way. But I don’t know what are the consequences. Could anyone please let me know?