Search code examples
javathread-safetyjco

Is SAP JCo thread safe?


I did not really manage to find proper documentation about this. There are the classes in JCO com.sap.conn.jco.JCoDestination and com.sap.conn.jco.JCoDestinationManager. My questions about them:

  • are they thread safe?
  • if not, are they expensive to create?

Solution

  • I think I have found it finally. http://help.sap.com/saphelp_nwpi711/helpdata/en/48/6437ccbdbc51eee10000000a421937/content.htm

    CAUTION In a multi-thread environment, distribution of objects (for example, JCoTable objects) between different threads must be implemented carefully. Note that it is not possible to make multiple concurrent SAP calls for the same direct connection.

    So its not thread safe