[Finalizer] 20:14:43,244 WARNING [org.apache.activemq.artemis.core.client.impl.DelegatingSession] I'm closing a ClientSession you left open. Please make sure you close all ClientSessions explicitly before let
ting them go out of scope!
[Finalizer] 20:14:43,244 WARNING [org.apache.activemq.artemis.core.client.impl.DelegatingSession] The session you didn't close was created here:
java.lang.Exception
at org.apache.activemq.artemis.core.client.impl.DelegatingSession.<init>(DelegatingSession.java:83)
at org.acme.yourproject.YourClass (YourClass.java:666)
[Finalizer] 20:14:43,244 WARNING [org.apache.activemq.artemis.core.client.impl.DelegatingSession] I'm closing a ClientSession you left open. Please make sure you close all ClientSessions explicitly before let
ting them go out of scope!
[Finalizer] 20:14:43,244 WARNING [org.apache.activemq.artemis.core.client.impl.DelegatingSession] The session you didn't close was created here:
java.lang.Exception
at org.apache.activemq.artemis.core.client.impl.DelegatingSession.<init>(DelegatingSession.java:83)
at org.acme.yourproject.YourClass (YourClass.java:666)
Copy to ClipboardCopied!Toggle word wrapToggle overflow
请注意,如果您使用 Jakarta 消息传递,则警告将涉及 Jakarta 消息传递连接,而不是客户端会话。另外,日志还会告诉您没有关闭的 Jakarta Messaging 连接或核心客户端会话被实例化的代码行。这样,您可以找出代码中的错误并相应地进行更正。
从客户端幻灯片检测故障
只要客户端从服务器接收数据,它将认为连接处于活动状态。如果客户端没有接收任何 客户端-failure-check-period 毫秒的任何数据包,它将考虑连接失败,并将启动故障转移,或调用任何 Failure Listener 实例,如果您使用 Jakarta Messaging,则代表 ExceptionListener 实例。
如果您使用的是 Jakarta Messaging,行为由 ActiveMQConnectionFactory 实例上的 ClientFailureCheckPeriod 属性定义。