Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

272
Vistas
HystrixCommand annotation causes Session closed errors

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.

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Simply add the following config to your properties/yml file

hystrix.command.default.execution.isolation.strategy: SEMAPHORE

Here is some documentation for further reading

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda