code: public static synchronized void enlistConnectionListener(String poolName, Object mcp, Object cl,
                                                              String tx,
                                                              boolean success, boolean interleaving)
     {
        if (!interleaving)
        {
           if (success)
           {
              log.tracef("%s", new TraceEvent(poolName,
                                              Integer.toHexString(System.identityHashCode(mcp)),
                                              TraceEvent.ENLIST_CONNECTION_LISTENER,
                                              Integer.toHexString(System.identityHashCode(cl)),
                                              tx.replace('-', '_')));
           }
           else
           {
              log.tracef("%s", new TraceEvent(poolName,
                                              Integer.toHexString(System.identityHashCode(mcp)),
                                              TraceEvent.ENLIST_CONNECTION_LISTENER_FAILED,
                                              Integer.toHexString(System.identityHashCode(cl)),
                                              tx.replace('-', '_')));
           }
        }
        else
        {
           if (success)
           {
              log.tracef("%s", new TraceEvent(poolName,
                                              Integer.toHexString(System.identityHashCode(mcp)),
                                              TraceEvent.ENLIST_INTERLEAVING_CONNECTION_LISTENER,
                                              Integer.toHexString(System.identityHashCode(cl)),
                                              tx.replace('-', '_')));
           }
           else
           {
              log.tracef("%s", new TraceEvent(poolName,
                                              Integer.toHexString(System.identityHashCode(mcp)),
                                              TraceEvent.ENLIST_INTERLEAVING_CONNECTION_LISTENER_FAILED,
                                              Integer.toHexString(System.identityHashCode(cl)),
                                              tx.replace('-', '_')));
           }
        }
     }
docs: Enlist connection listener
  @param poolName The name of the pool
  @param mcp The managed connection pool
  @param cl The connection listener
  @param tx The transaction
  @param success Outcome
  @param interleaving Interleaving flag