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

    PooledConnectionFactory and ExceptionListener problem

    Lukasz Zielinski Newbie

      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