--- D:\Temp\jacorb\old\ClientConnectionManager.java 2006-07-26 08:38:56.000000000 +0530 +++ D:\Temp\jacorb\new\ClientConnectionManager.java 2008-12-16 16:13:23.204317500 +0530 @@ -29,6 +29,8 @@ import org.apache.avalon.framework.configuration.ConfigurationException; import org.apache.avalon.framework.logger.Logger; import org.jacorb.orb.ORB; +import org.jacorb.orb.iiop.IIOPAddress; +import org.jacorb.orb.iiop.IIOPProfile; import org.omg.CORBA.BAD_PARAM; import org.omg.ETF.Factories; @@ -93,7 +95,8 @@ /* look for an existing connection */ ClientConnection clientConnection = - (ClientConnection)connections.get( profile ); + (ClientConnection)connections.get(profile.toString() ); + if (clientConnection == null) { @@ -120,7 +124,8 @@ } receptor_pool.connectionCreated( connection ); - connections.put( profile, clientConnection ); + // connections.put( profile, clientConnection ); + connections.put( profile.toString(), clientConnection );//ACP changed here } else { @@ -149,7 +154,7 @@ + connection.getGIOPConnection().toString()); } connection.close(); - connections.remove(connection.getRegisteredProfile()); + connections.remove(connection.getRegisteredProfile().toString()); } else { @@ -169,13 +174,18 @@ */ public synchronized void removeConnection(ClientConnection connection) { - connections.remove( connection.getRegisteredProfile() ); + if (logger.isDebugEnabled()) + { + logger.debug ("!!!!ClientConnectionManager: removeConnection " + + connection.getGIOPConnection().toString()); + } + connections.remove( connection.getRegisteredProfile().toString() ); } public synchronized void addConnection( GIOPConnection connection, org.omg.ETF.Profile profile ) { - if( !connections.containsKey( profile )) + if( !connections.containsKey( profile.toString() )) { ClientConnection clientConnection = new ClientConnection ( @@ -194,7 +204,8 @@ clientConnection.incClients(); - connections.put( profile, clientConnection ); + connections.put( profile.toString(), clientConnection ); + } }