public void stop() throws JMSException {
synchronized (this) {
    ensureOpen();
    setModified();
    if (!stopped) {
      if (_logger.isLoggable(Level.FINE)) {
        _logger.fine("GSConnectionImpl.stop()  stopping connection: " + toString());
      }
      for (int i=0; i < sessions.size(); i++) {
        GSSessionImpl session=(GSSessionImpl)sessions.get(i);
        session.stop();
      }
      if (_logger.isLoggable(Level.FINE)) {
        _logger.fine("GSConnectionImpl.stop()  connection was stopped: " + getCnxKey());
      }
      stopped=true;
    }
  }
}

public void stop ( ) throws JMSException { synchronized ( this ) { ensureOpen ( ) ; setModified ( ) ; if ( ! stopped ) { if ( _logger . isLoggable ( Level . FINE ) ) { _logger . fine ( "GSConnectionImpl.stop()  stopping connection: " + toString ( ) ) ; } for ( int i = 0 ; i < sessions . size ( ) ; i ++ ) { GSSessionImpl session = ( GSSessionImpl ) sessions . get ( i ) ; session . stop ( ) ; } if ( _logger . isLoggable ( Level . FINE ) ) { _logger . fine ( "GSConnectionImpl.stop()  connection was stopped: " + getCnxKey ( ) ) ; } stopped = true ; } } }
overwrite of the api method for stoping the topic connection .
