I have a spring app that I'm trying to use the Circuit Breaker pattern on via Hystrix. I marked a method in my service with the @HystrixCommand annotation. This method has a call to a repository that works fine without the @HystrixCommand annotation.
However, simply adding the annotation gives me a bunch of runtime exceptions - org.hibernate.SessionException: Session is closed! and java.net.ConnectException. I don't understand enough about @HystrixCommand or spring to really understand what's going on here. Is there something about my repository connection I need to know before using Hystrix? I basically have just followed the guide here: https://spring.io/guides/gs/circuit-breaker/
Appreciate any feedback or leads.
Simply add the following config to your properties/yml file
hystrix.command.default.execution.isolation.strategy: SEMAPHORE