mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/transport/TransportChannelImpl.java
@Deactivate
    public void deactivate()
    {
        // TODO: TH-1279. Should interrupt the thread running the listener instance.
        m_ListenerInstance.dispose();

        if (m_TransportCapabilities != null && m_TransportCapabilities.isConnectionOriented())
        {
            final TransportLayer transport = getTransportLayer(getTransportLayerName());
            if (transport != null && transport.isConnected())
            {
                try
                {
                    transport.disconnect();
                }
                catch (final Exception e)
                {
                    m_Logging.warning(e, "Error trying to disconnect transport layer during deactivation");
                }
            }
        }
    }
/**
     * Deactivate the component by disposing the underlying message listener.
     */
Deactivate the component by disposing the underlying message listener.
Deactivate the component by disposing the underlying message listener .
@Deactivate
    public void deactivate()
    {
        m_ListenerInstance.dispose();
        if (m_TransportCapabilities != null && m_TransportCapabilities.isConnectionOriented())
        {
            final TransportLayer transport = getTransportLayer(getTransportLayerName());
            if (transport != null && transport.isConnected())
            {
                try
                {
                    transport.disconnect();
                }
                catch (final Exception e)
                {
                    m_Logging.warning(e, "Error trying to disconnect transport layer during deactivation");
                }
            }
        }
    }
@ Deactivate public void deactivate ( ) { m_ListenerInstance . dispose ( ) ; if ( m_TransportCapabilities != null && m_TransportCapabilities . isConnectionOriented ( ) ) { final TransportLayer transport = getTransportLayer ( getTransportLayerName ( ) ) ; if ( transport != null && transport . isConnected ( ) ) { try { transport . disconnect ( ) ; } catch ( final Exception e ) { m_Logging . warning ( e , "Error trying to disconnect transport layer during deactivation" ) ; } } } }
Deactivate the component by disposing the underlying message listener.
Deactivate the component by disposing the underlying message listener .
// TODO: TH-1279. Should interrupt the thread running the listener instance.