Class JCoServerFactoryCF

java.lang.Object
com.sap.conn.jco.server.JCoServerFactoryCF

public abstract class JCoServerFactoryCF extends Object
Factory for creating the server instance used by JCo applications in the CF Environment.

The factory uses the env variables to get the server configuration properties.

  • Constructor Details

    • JCoServerFactoryCF

      protected JCoServerFactoryCF()
      Internal usage only.
  • Method Details

    • init

      public static void init(ClassLoader cl)
      Initialization for CF environment.
    • getServerInstance

      protected abstract JCoServer getServerInstance() throws JCoException
      Do not use this method. Reserved for internal use. Use getServer() instead.
      Returns:
      the JCoServer instance for the specified name
      Throws:
      JCoException - if the server configuration is wrong, e.g. a mandatory parameter is missing
    • getServer

      public static JCoServer getServer() throws JCoException
      Return the available JCo server instance.
      Returns:
      the JCoServer instance
      Throws:
      JCoException - if the server configuration is wrong, e.g. a mandatory parameter is missing