【发布时间】:2015-03-11 09:54:23
【问题描述】:
我有这个项目:https://github.com/AndreaCatania/libreria
我已经将此项目部署到 WildFly 8.2 中,当数据库连接中断时,AS 无法自动重新连接,并且应用程序被冻结(我必须重新启动 AS)。
如果我将相同的项目部署到 GlassFish 中,我没问题。
我该如何解决这个问题?
WildFly 配置:
https://github.com/AndreaCatania/libreria/blob/master/standalone-full.xml
https://github.com/AndreaCatania/libreria/blob/master/standalone.xml
【问题讨论】:
-
我们可以从
%JBOSS_HOME%/standalone/configuration/中看到stanalone.xml或standalone-full.xml吗? -
我可以看到您正在使用默认的 H2 数据库,并且想知道它如何离线...
-
嗯,我没明白,什么意思?
-
啊,对不起,你离开休眠管理数据库连接。它不受容器管理。好的,那么 Wildfly 上部署的应用抛出的异常是什么?