@Override public void removeMessagingClientFactory( IMessagingClientFactory factory ) { String factoryType = factory != null ? factory.getType() : null; IMessagingClient oldClient = null; synchronized( this ) { if( this.messagingClient != null && this.messagingClient.getMessagingType().equals( factoryType )) { // This is the messaging factory we were using... // We must release our messaging client right now. oldClient = resetInternalClient(); } } terminateClient( oldClient, "The previous client could not be terminated correctly.", this.logger ); this.logger.fine( "A messaging factory was removed: " + factoryType ); }
@Override public void removeMessagingClientFactory( IMessagingClientFactory factory ) { String factoryType = factory != null ? factory.getType() : null; IMessagingClient oldClient = null; synchronized( this ) { if( this.messagingClient != null && this.messagingClient.getMessagingType().equals( factoryType )) { // This is the messaging factory we were using... // We must release our messaging client right now. oldClient = resetInternalClient(); } } terminateClient( oldClient, "The previous client could not be terminated correctly.", this.logger ); this.logger.fine( "A messaging factory was removed: " + factoryType ); }
/** * Constructor. */ protected ReconfigurableClient() { resetInternalClient(); // Try to find the MessagingClientFactoryRegistry service. setRegistry( lookupMessagingClientFactoryRegistryService( new OsgiHelper())); }
/** * Constructor. */ protected ReconfigurableClient() { resetInternalClient(); // Try to find the MessagingClientFactoryRegistry service. setRegistry( lookupMessagingClientFactoryRegistryService( new OsgiHelper())); }
this.messagingClient = newMessagingClient; else resetInternalClient();
this.messagingClient = newMessagingClient; else resetInternalClient();