BoneCP does not supply a valid connection if it was created when the database was down

StackOverflow https://stackoverflow.com/questions/9192304

  •  17-05-2021
  •  | 
  •  

Pergunta

I have a use case where the database (sybase) may be unavailable when bonecp (0.7.1.RELEASE) creates a connection pool. When it is later available however, if my app requests a connection the call never returns.

I'm using out of the box config bonecp defaults, but I've tested this with transactionRecoveryEnabled set to true too.

Considering that c3p0 and dbcp both have this functionality, is there something I'm doing wrong?

Foi útil?

Solução

Try using lazyInit config setting, it's meant for that feature.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top