Skip to Content
Former Member
Jun 30, 2006 at 04:30 PM

JCO server registred in CRM


Hi experts,

We´re calling a JCO server from our CRM 4.0 Instalation and followed the instructions found in some threads, our code looks like:


  • Start the server


public void startServers()


// Server 1 listens for incoming requests from system 1

// (Change gateway host, service, and program ID according to your needs)

Properties properties = new Properties();

properties.setProperty("jco.server.gwhost", "");

properties.setProperty("jco.server.gwserv", "sapgw00");

properties.setProperty("jco.server.progid", "JAVASERVER");

properties.setProperty("jco.server.unicode", "1" );

JCO.Server server = new JCO.Server( properties, repository );


// srv[0] = new Server("","sapgw00","JAVASERVER",repository);

for (int i = 0; i < srv.length; i++) {
try {
catch (Exception ex) {
System.out.println("Could not start server " + srv.getProgID() + ":

" + ex);




When we use the Server constructor we find to get the two system get connected but sumetimes with abnormal behavior, our RFC destination are set to unicode.

If we use the JCO.Server constructor to set our server to unicode, we are only able to get the system connected without receive any message.

Any suggestion?

Thanks in advance.