本文阐述如何用连接池地方法连接到SAP服务器。 1. 创建一SAP用户:Test01. 关于如何创建用户,请参考我上一博客 JCo3 建立连接到SAP(1)- 直接连接 2. 编写代码: import java.io.File; import java.io.FileOutputStream; import java.util.Properties; import com.sap.conn.jco.JCoException; import com.sap.conn.jco.ext.DestinationDataProvider; import com.sap.conn.jco.JCoDestination; import com.sap.conn.jco.JCoDestinationManager; /* Configuration of destination pool and connection pooling Each destination is associated with a connection factory and, if the pooling feature is used, with a connection pool. Initially the destination pool is empty. JCo runtime does not preallocate connections. The first connection will be created on first call. The property peak_limit describe how many connection can