boolean checkIfRemote(SibRaMessagingEngineConnection conn)
    {
        final String methodName = "checkIfRemote";
        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
        {
            SibTr.entry(this, TRACE, methodName, new Object[] { conn });
        }

        String meName = conn.getConnection().getMeName();
        if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled())
        {
            SibTr.debug(TRACE, "Connections's ME name " + meName);
        }
        boolean remote = true;
        JsMessagingEngine[] localMEs = SibRaEngineComponent.getActiveMessagingEngines(_endpointConfiguration.getBusName());
        for (int i = 0; i < localMEs.length; i++)
        {
            JsMessagingEngine me = localMEs[i];
            String localName = me.getName();

            if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled())
            {
                SibTr.debug(TRACE, "Checking ME name " + localName);
            }

            if (localName.equals(meName))
            {
                if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled())
                {
                    SibTr.debug(TRACE, "Me name matched, the connection is local");
                }
                remote = false;
                break;
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
        {
            SibTr.exit(TRACE, methodName, remote);
        }

        return remote;
    }
boolean checkIfRemote ( SibRaMessagingEngineConnection conn ) { final String methodName = "checkIfRemote" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , new Object [ ] { conn } ) ; } String meName = conn . getConnection ( ) . getMeName ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( TRACE , "Connections's ME name " + meName ) ; } boolean remote = true ; JsMessagingEngine [ ] localMEs = SibRaEngineComponent . getActiveMessagingEngines ( _endpointConfiguration . getBusName ( ) ) ; for ( int i = 0 ; i < localMEs . length ; i ++ ) { JsMessagingEngine me = localMEs [ i ] ; String localName = me . getName ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( TRACE , "Checking ME name " + localName ) ; } if ( localName . equals ( meName ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isDebugEnabled ( ) ) { SibTr . debug ( TRACE , "Me name matched, the connection is local" ) ; } remote = false ; break ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( TRACE , methodName , remote ) ; } return remote ; }
This method checks to see if the specified connection is to a remote ME.
It will check the name of the ME the connection is connected to againgst the
list of local MEs that are on the locla server.

@param conn The connection to check.
@return True if the connection passed is a connection to a remote ME