Menu

#173 17.1 服务器端对失效连接的清除

open
nobody
None
5
2012-02-29
2012-02-29
x x x
No

public void finalize() throws Throwable
{
if (!closed)
{
log.warn("I'm closing a core ClientSessionFactory you left open. Please make sure you close all ClientSessionFactories explicitly " + "before letting them go out of scope! " +
System.identityHashCode(this));

log.warn("The ClientSessionFactory you didn't close was created here:", e);

close();
}

super.finalize();
}

Discussion

  • x x x

    x x x - 2012-02-29

    11.1.1 应用层的失效备援(FailOver)
    应用程序可以注册一个JMS ExceptionListener.当hornetq 监测到连接故障时,它会通知这个注册的Listener

     
  • x x x

    x x x - 2012-02-29

    39.2 失效备援的模式
    1.自动客户端的失效备援
    2.应用层的客户端的失效备援

     
  • x x x

    x x x - 2012-02-29

    39.2.2 连接故障的通知
    hornetq的核心接口也提供了一个相似的接口
    org.hornet.core.client.sessionFailureListener

    任何SessionFailureListener的实例,在发生连接故障时,都会被hornetq调用

     
  • x x x

    x x x - 2012-02-29

    30.1 管理接口API

    核心资源的管理接口在org.hornetq.api.core.management包中

     
  • x x x

    x x x - 2012-02-29

    /**
    * A HornetQServerControl is used to manage HornetQ servers.
    */
    public interface HornetQServerControl