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

JCO server registred in CRM

17 Views

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", "10.0.0.4");

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]=server;

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

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

" + ex);

}//try

}//for

}

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.