If a shared SAP user ID is used, then the connections to SAP must be defined as part of a connection pool. The connection pool allows multiple, concurrent end users to access SAP efficiently.
The SAP information in the global.properties.xml file is shown below:
<PropertyGroup name="SAPGroup" description="properties for configuring SAP in the Portal and Studio."> <!-- define the "Default" SAP connection pool to use. The username provided here must have access rights to call a number of RFMs for metadata repository access (Authorization Object: S_RFC, ACTVT: 16, FUGR). -->
<Property name="DefaultConnectionPoolName" value="sapjco" description="connection pool name for the default SAP connection" menugroup="100" />
<Property name="ConnectionPools" value="Default,custom1,another2" description="Comma separated list of connection pool names" menugroup="100" />
</PropertyGroup>
The ConnectionPools property gives a list of different connection pools that are defined. Each connection pool on this list has a corresponding <poolname>.properties file in the ..\webapps\onepage\WEB-INF\classes directory. There is one sample connection pool properties file provided called sapjco.properties with comments on how to set the connection pool properties. Copy this file and modify it to create additional connection pools. The contents of this file are:
# These properties are used to establish the default SAP # connection pool.# Other connection pools can be created by copying this # sapjco.properties# file to "poolname".properties and modifying it.## The complete set of properties and their meanings are # documented in# Java Connector (JCo) JavaDocs for the #JCO.createClient(java.util.Properties) method.## The first 2 properties are NOT part of the connection #information:# specify the maximum number of connections the pool should #allow - default is 10#sybase.maxconnections=10# maxwaittime is time in milliseconds to wait for a connection #to become# available when maxconnections are already in use. The #default is 30 seconds.#sybase.maxwaittime=30000## The default connection pool is used to access the #JCO.Repository.# In order to retrieve the necessary information from the SAP #system's data # dictionary, the repository needs to call a number of RFMs #for which the # access rights have to be granted (Authorization Object: #S_RFC, ACTVT: 16, FUGR).# R/3 Release Function Groups# since 3.1H RFC1, SG00, SRFC, SUNI, SYST# since 4.0A RFC1, SDIF, SG00, SRFC, SYST, SYSU, SUNI# since 4.6A RFC1, SDIF, SG00, SRFC, SYST, SYSU# since 4.6D RFC1, SDIFRUNTIME, SG00, SRFC, SYST, SYSUjco.client.client=400jco.client.user=sapjco.client.passwd=1sapjco.client.lang=ENjco.client.ashost=sap.try.sybase.comjco.client.sysnr=00
The DefaultConnectionPoolName property indicates which of the pool names in the ConnectionPools list is the one to use by default.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |