code: final void connectionErrorOccurred(final Exception exception, boolean callJCAListener) {
  
          final String methodName = "connectionErrorOccurred";
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.entry(this, TRACE, methodName, new Object[] {exception, Boolean.valueOf(callJCAListener)});
          }
  
          /*
           * Only send the event if the server isn't shutting down anyway
           */
  
          if (!SibRaEngineComponent.isServerStopping()) {
  
              final ConnectionEvent event = new ConnectionEvent(this,
                      ConnectionEvent.CONNECTION_ERROR_OCCURRED, exception);
  
              // Copy list to protect against concurrent modification by listener
              final List copy;
              synchronized (_eventListeners) {
                  copy = new ArrayList(_eventListeners);
              }
  
              // We will probably want to look into some how figuring out that the listener
              // that we have is the JCA one and not some other one that is registered as we
              // want to call those ones regardless of the flag. Today we only expect JCA listeners
              // to be registered
              if (callJCAListener)
              {
                for (final Iterator iterator = copy.iterator(); iterator.hasNext();) {
                  final Object object = iterator.next();
                  if (object instanceof ConnectionEventListener) {
                      ((ConnectionEventListener) object)
                              .connectionErrorOccurred(event);
                  }
                }
              }
  
          }
  
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.exit(this, TRACE, methodName);
          }
  
      }
docs: Notifies the connection even listeners that a connection error has
  occurred.
  
  @param exception
  the exception, if any, that is the cause of the error
  @param callJCAListener whether we shoud call the listeners or not