title: Connect to SAP message server through JCO
body: <p>I have a working connection between my Java application and a SAP server through use of SAP JCO. The problem is that my connection is limited to 1 server.
  There should be an option available for connecting to a SAP message server that acts like a load balancer.</p>
  
  <p>Does anyone have an idea how this works?</p>
  
  <p>My working Hibersap example:</p>
  
  <p><code>
      final SessionManagerConfig sessionManagerConfig = new SessionManagerConfig("");</p>
  
  <pre><code>sessionManagerConfig.setContext(JCoContext.class.getName());
  sessionManagerConfig.setProperty(DestinationDataProvider.JCO_ASHOST, "");
  sessionManagerConfig.setProperty(DestinationDataProvider.JCO_SYSNR, "");
  sessionManagerConfig.setProperty(DestinationDataProvider.JCO_CLIENT, "");
  sessionManagerConfig.setProperty(DestinationDataProvider.JCO_USER, "");
  sessionManagerConfig.setProperty(DestinationDataProvider.JCO_PASSWD, "");
  sessionManagerConfig.setProperty(DestinationDataProvider.JCO_LANG, "");
  
  ...
  </code></pre>
  
  <p></code></p>