code: public synchronized void messagingEngineInitializing(
              final JsMessagingEngine messagingEngine) {
  
          final String methodName = "messagingEngineInitializing";
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.entry(this, TRACE, methodName, messagingEngine);
          }
  
          if (_remoteMessagingEngine
                  && messagingEngine.getBusName().equals(
                          _endpointConfiguration.getBusName())) {
  
              /*
               * A remote connection is no longer required. Stop any timers
               * attempting to connect and close any existing remote connection.
               */
  
              SibTr.info(TRACE, "ME_INITIALIZING_CWSIV0778", new Object[] {
                      messagingEngine.getName(),
                      _endpointConfiguration.getBusName(), this });
  
              _remoteMessagingEngine = false;
              if (_remoteConnection != null) {
                  _remoteConnection.close();
              }
              _timer.cancel();
  
          }
  
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.exit(this, TRACE, methodName);
          }
  
      }
docs: Notifies the listener that the given messaging engine is initializing.
  
  @param messagingEngine
  the messaging engine