2 Replies Latest reply on Apr 9, 2009 8:07 AM by zieluuuu

    PooledConnectionFactory and ExceptionListener problem

    zieluuuu

      Hello,

      we are using raw PooledConnectionFactory (PCF). When ExceptionListener is set on connections obtained from PCF and some problem occures (i.e. broker process is killed) only listener that was registered last gets notified.

       

      After reading through PCF source code I see that setExceptionListener on PooledConnection just delegates to underlying ActiveMQConnection which results in overwriting of previously set listener.

       

      This behaviour makes PCF useless when code relies on ExceptionListener notification.

       

      Edited by: zieluuuu on Apr 8, 2009 1:55 PM