@Override
	public final void close()
    {
    	externalAccessLock.writeLock().lock();
    	try
		{
	        if (closed)
	            return;
	        closed = true;
	        onConnectionClose();
		}
    	finally
    	{
    		externalAccessLock.writeLock().unlock();
    	}
    	onConnectionClosed();
    }
@ Override public final void close ( ) { externalAccessLock . writeLock ( ) . lock ( ) ; try { if ( closed ) return ; closed = true ; onConnectionClose ( ) ; } finally { externalAccessLock . writeLock ( ) . unlock ( ) ; } onConnectionClosed ( ) ; }
/* (non-Javadoc)
@see javax.jms.Connection#close()