Skip to main content
Skip table of contents

Properties for the JCo 2 Server

Within a configuration document (by default: <X4>/X4DB/0/jco_server_settings.prop) the number of JCo Server instances, function handler processes and IDoc handler processes are defined. For each JCo Server instance a JCo Server configuration file must be referenced in the central configuration file <X4>/X4config.xml . The properties file is divided into the following blocks.

General configuration

Regarding the allowed server instances and the handling with connections and Connection Pooling, the JCo 2 Server can be configured with the following properties, see Connection Pooling (X4 SAP JCo 2).

PERL
# Number of server instances
server_instances_count = Number of JCo Server instancen
usePool                = Boolean value
poolSize               = Permitted number of connections

Explanation:

  • server_instances_count: Number of JCo Server instances

  • usePool: Activate (true) oder deactivate (false) Connection Pooling, see Connection Pooling (X4 SAP JCo 2)

  • poolSize: Number of permitted client connections in the pool; Recommendation: Choose a value corresponding at least to the sum of the JCo 2 Server instancen (identified by a ProgID).

Function handler configuration

In the following properties the function handlers for RFC/BAPI calls per SAP host are defined. The configuration of the default function handler processes is optional and is only used as a fallback, if no appropriate handler processes were assigned in the function block/method definitions, see Function Block/Method Definitions (X4 SAP JCo 2).

However, commit and rollback handlers can only be agreed using these properties.

PERL
# per jcoserver instance settings
# this should always be set in the method definitions
jcoserver.function.handler.userId 	= User folder within the X4DB (optional)
jcoserver.function.handler.process  = Default Function Handler process (optional)

jcoserver.function.commit.userId    = User repository for the commit process
jcoserver.function.commit.process   = Path to the X4 process for commit
jcoserver.function.rollback.userId  = User repository for rollback processes
jcoserver.function.rollback.process = Path to the X4 process for rollback

Explanation:

  • jcoserver.function.handler.userId: User repository within the X4DB (e. g. 1), in which the function call handler process is located

  • jcoserver.function.handler.process: Optional path specification to an X4 process serving as default handler for function calls

  • jcoserver.function.commit.userId: User repository within the X4DB (e. g. 1), in which the Commit handler process for function calls is located 

  • jcoserver.function.commit.process: Path specification to an X4 process serving as Commit handler for function calls

  • jcoserver.function.rollback.userId: User repository within the X4DB (e. g. 1), in which the Rollback handler process for function calls is located 

  • jcoserver.function.rollback.process: Path specification to an X4 process serving as Rollback handler for function calls

IDoc processing


If no handler configuration was found, the corresponding Commit respectively Rollback will be skipped.

PERL
# this should always be set in the method definitions
jcoserver.idoc.handler.userId   = User folder within the X4DB (optional) 
jcoserver.idoc.handler.process  = Default iDoc handler process (optional)

# commit and rollback handlers for IDocs
jcoserver.idoc.commit.userId    = User repository for the Commit process
jcoserver.idoc.commit.process   = Path to the X4 process for the Commit
jcoserver.idoc.rollback.userId  = User repository for the Rollback process
jcoserver.idoc.rollback.process = Path to the X4 process for the Rollback

Explanation:

  • jcoserver.idoc.handler.userId: Optional specification of the user repository within the X4DB (e. g. 1), in which the iDoc handler process is located

  • jcoserver.idoc.handler.process: Optional path specification to an X4 process serving as default handler for iDocs (Fallback)

  • jcoserver.idoc.commit.userId: User repository within the X4DB (e. g. 1), in which the Commit handler process for iDocs is located 

  • jcoserver.idoc.commit.process: Path specification to an X4 process serving as Commit handler for iDocs

  • jcoserver.idoc.rollback.userId: User repository within the X4DB (e. g. 1), in which the Rollback handler process for iDocs is located 

  • jcoserver.idoc.rollback.process: Path specification to an X4 process serving as Rollback handler for iDocs

Connection settings to the SAP host

In the following properties the settings to connect to an SAP host are defined for the respective JCo 2 Server instance:

PERL
# connection String to SAP
jco.server.gwhost  = Gateway host
jco.server.gwserv  = Gateway service
jco.server.progid  = Program ID
jco.server.trace   = Boolean value
jco.server.unicode = Boolean value

# required for dynamic repository and metadata lookup
jco.client.client  = Client ID
jco.client.user    = User name
jco.client.passwd  = Password
jco.client.lang    = Client language
jco.client.sysnr   = SAP system number
jco.client.ashost  = SAP application server
jco.client.trace   = Boolean value

Explanation:

  • jco.server.gwhost: Gateway host

  • jco.server.gwserv: Gateway service (normally sapgwNN)

  • jco.server.progid: Program ID of the SAP host

  • jco.server.trace: Activate (1) or deactivate (0) RFC trace for the SAP Server

  • jco.server.unicode: Connect (1) or do not connect (0) in Unicode mode

  • jco.client.client: Client ID (three-digit numeric value)

  • jco.client.user: User name

  • jco.client.passwd: Password

  • jco.client.lang: Language of the client

  • jco.client.sysnr: SAP system number

  • jco.client.ashost: SAP application server

  • jco.client.trace: Activate (1) or deactivate (0) RFC trace

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.