OpenESQL is thread safe. Normally all threads in an application share SQL resources such as connections and cursors. When running with an application server, however, threads will be scheduled to handle requests from different users. Therefore, you must use the directive:
SQL(THREAD=ISOLATE)
to ensure that each thread's resources are isolated from each other.