更新时间:2023-09-21 15:53:22
数据源配置中的选项 connection-listener
可能是解决方案。
The option connection-listener
in datasource configuration can be the solution.
connection-listener:
一个 org.jboss.jca.adapters.jdbc.spi.listener.ConnectionListener
提供了监听连接激活和
钝化的可能性,以便在连接为
之前执行操作返回到应用程序或返回到池中
An org.jboss.jca.adapters.jdbc.spi.listener.ConnectionListener
that
provides a possible to listen for connection activation and
passivation in order to perform actions before the connection is
returned to the application or returned to the pool
您可以创建 org.jboss.jca的自定义实现.adapters.jdbc.spi.listener.ConnectionListener
并将其作为模块进行部署。
You can create a custom implementation of org.jboss.jca.adapters.jdbc.spi.listener.ConnectionListener
and deploy it as a module to do that you want.