cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Conncetion to SAP MessageServer

Former Member
0 Kudos

Hi,

I am trying to Logon via JCO.Client to a SAP System using an SAP MessageServer.

To which JCO.Paramater must I add the MessageServer ID or has someone an JAVA Example to connect via MessageServer?

Thx

Joachim

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

there are several overloaded methods in JCO.createClient, some of them take a message server as parameter

snip from jco javadoc

---

createClient

public static JCO.Client createClient(java.lang.String client,

java.lang.String user,

java.lang.String passwd,

java.lang.String lang,

java.lang.String mshost,

java.lang.String r3name,

java.lang.String group)

Creates an instance of a client connection to a remote SAP system (with load balancing) Note: Depending on the SAP system release, logins using Single-Sign-On (SSO) or X509 certificates are being supported.

For SSO specify the user to be $MYSAPSSO2$ and pass the base64 encoded ticket as as the passwd parameter.

For X509 specify the user to be $X509CERT$ and pass the base64 encoded certificate as the passwd parameter.

Parameters:

client - SAP logon client

user - SAP logon user

passwd - SAP logon password

lang - SAP logon language

mshost - Host name of the message server

r3name - Name of the SAP system

group - Name of the group of application servers

Returns:

the newly created client

or

public static JCO.Client createClient(java.util.Properties properties)

Creates an instance of a client connection to a remote SAP system.

Parameters:

properties - the connection parameters as a property list.

Returns:

the newly created client. Depending on the type of middleware layer loaded, the properties recognized by this method may vary.

For com.sap.mw.jco.rfc.MiddlewareRFC, i.e. the default RFC layer, the supported properties are: <b>....see JavaDocs</b>

---

franz