public void stopTraceSession(int traceSessionId) throws SQLException {
  try (FbService service=attachServiceManager()){
    service.startServiceAction(getTraceSPB(service,isc_action_svc_trace_stop,traceSessionId));
    queueService(service);
  }
 catch (  IOException ioe) {
    throw new SQLException(ioe);
  }
}

public void stopTraceSession ( int traceSessionId ) throws SQLException { try ( FbService service = attachServiceManager ( ) ) { service . startServiceAction ( getTraceSPB ( service , isc_action_svc_trace_stop , traceSessionId ) ) ; queueService ( service ) ; } catch ( IOException ioe ) { throw new SQLException ( ioe ) ; } }
stops a trace session with the given trace session id
