[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBMESSAGING-432 - Connection Leaking on Factory (1 conne

clebert.suconic@jboss.com do-not-reply at jboss.com
Mon Sep 18 14:36:26 EDT 2006


I'm removing the comment from ClientConnectionFactoryDelegate to fix this.


  |          if (remotingConnection == null)
  |          {
  |             //Not a call to createConnectionDelegate - disconnect the client
  |             
  |             client.disconnect();
  |          }
  | 


I"m not sure why we are using a separate client here thought. (maybe because it's hard to access properties from the client in a different layer). It would take a lot of work to change this. (to not have to open a new client here).

I will just disconnect the client, since it's created every time. (So, the leak it's a little bigger. (It's still a minor issue though).

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972395#3972395

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972395



More information about the jboss-dev-forums mailing list