My project has Open session in view enabled and we cannot disable it at this point. We are using spring boot.
I have a method that does db read calls and rest calls. I do NOT need transactional boundary over this method. How do I disable the transaction in this method. I have tried using
@Transaction(propagation=Propagation.NEVER
and
@Transaction(propagation=Propagation.NOT_SUPPORTED)
But the transaction still seems to exist. I know this because there are some lazily loaded relationships that gets loaded if I access them with in this method.
public void doSomething() {
makeDbCall();
makeRestCall();
makeDbCallAgain();
}