Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
数据库恢复后通过hibernate连接数据库_Hibernate_Connection Pooling - Fatal编程技术网

数据库恢复后通过hibernate连接数据库

数据库恢复后通过hibernate连接数据库,hibernate,connection-pooling,Hibernate,Connection Pooling,请建议hibernate是否有某种机制来检测rdbms的恢复,并在数据库关闭并恢复时自动重新连接到它?hibernate没有。但像C3P0这样的底层连接池会这样做。对于C3P0,您需要指定连接测试查询和测试周期。这里的详细信息:你在说什么数据库?为什么hibernate需要这样做?

请建议hibernate是否有某种机制来检测rdbms的恢复,并在数据库关闭并恢复时自动重新连接到它?

hibernate没有。但像C3P0这样的底层连接池会这样做。对于C3P0,您需要指定连接测试查询和测试周期。这里的详细信息:

你在说什么数据库?为什么hibernate需要这样做?