⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tutorialconnect2.java

📁 SAP ERP的二次开发
💻 JAVA
字号:
import com.sap.mw.jco.*;/** * @author Thomas G. Schuessler, ARAsoft GmbH * http://www.arasoft.de */public class TutorialConnect2 extends Object {  static final String POOL_NAME = "Pool";  JCO.Client mConnection;  public TutorialConnect2() {    try {      JCO.Pool pool = JCO.getClientPoolManager().getPool(POOL_NAME);      if (pool == null) {        OrderedProperties logonProperties =          OrderedProperties.load("/logon.properties");        JCO.addClientPool(POOL_NAME,  // pool name                          5,          // maximum number of connections                          logonProperties);	// properties      }      mConnection = JCO.getClient(POOL_NAME);      System.out.println(mConnection.getAttributes());    }    catch (Exception ex) {      ex.printStackTrace();    }    finally {      JCO.releaseClient(mConnection);    }  }  public static void main (String args[]) {    TutorialConnect2 app = new TutorialConnect2();  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -