Hi All,
I'm trying to do a server side connection to SAP R/3 without using client logon parms such as user and password, application host, etc. with SAP Java Connector 3. Here is an example of what I'm trying to do:
Properties connectProperties = new Properties(); connectProperties.setProperty(DestinationDataProvider.JCO_CODEPAGE, "2"); createDataFile(DESTINATION_NAME1, "jcoDestination", connectProperties); Properties servertProperties = new Properties(); servertProperties.setProperty(ServerDataProvider.JCO_GWHOST,gw_host); servertProperties.setProperty(ServerDataProvider.JCO_GWSERV,gw_serv); servertProperties.setProperty(ServerDataProvider.JCO_PROGID,prog_id); servertProperties.setProperty(ServerDataProvider.JCO_REP_DEST, DESTINATION_NAME1); servertProperties.setProperty(ServerDataProvider.JCO_CONNECTION_COUNT, "1"); createDataFile(SERVER_NAME1, "jcoServer", servertProperties);
Upon doing that I get the following exception:
Exception in thread "main" com.sap.conn.jco.JCoRuntimeException: (101) JCO_ERROR_CONFIGURATION: Invalid configuration on ABAP_AS_WITHOUT_POOL. User identity unknown: neither user nor logon ticket nor certificate is specified.
at com.sap.conn.jco.rt.DefaultDestinationManager.getUserId(DefaultDestinationManager.java:742)
at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:495)
at com.sap.conn.jco.rt.RfcDestination.getSystemID(RfcDestination.java:533)
at com.sap.conn.jco.rt.RepositoryManager.getRepository(RepositoryManager.java:30)
at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:603)
Doing a server side connection without using log on parms on and just using the program ID, gateway service, and gateway host was possible in SAP JCo 2. Is this still possible in SAP JCo 3? By the exception it seems that I must give the user id and possibly password.