Specifying SAP JCo properties with a properties file
Specify JCo properties with a properties file to extend the functionality of the SAP connector.
About this task
The SAP connector recognizes additional JCo properties or JCo properties normally set by the UI. To specify these JCo properties with a properties file, you must create the file and then upload it to your basic runtime in a JAR file.
Note: This process uses Custom Library components. Custom libraries are not supported for listeners in a runtime cloud. If you need to upload properties files for use in a listen operation on a private runtime cloud, complete steps 1-3 and contact your Cloud owner. They need to manually place your JAR files in the runtime's [AtomRoot]/userlib folder. When the files are added, complete steps 10-12.
Procedure
-
Create a local folder on your system.
-
Create a properties file.
-
Open a text editor such as Notepad.
-
Enter the JCo properties you want to specify and each corresponding value. For example, you might enter
jco.client.user=BOOMI3. -
Save the properties file as
<unique_name>_jco.properties.Note: JARs can contain multiple properties files, so you should create unique names for every properties file. For example, a properties file could have the following name:
SAPatom2_jco.properties.
-
-
Use the JAR utility that is provided by the Java SDK (jar- The Java Archive Tool), and create a JAR file containing the properties file. JAR files can contain multiple properties files, however, do not place the same files in multiple JARs.
The Creating a JAR file tutorial from the Java Tutorials helps you when creating a JAR file.
-
Use the command line to navigate to the directory containing your properties file.
-
Create the JAR file using the basic format of the command for creating a JAR file: jar cf jar-file input-file(s). You can add additional options to the cf options of the command. For example:
jar cvf <JarFileName.jar> <FilesToBeCompressed>. Your command may look similar to the following:jar cf SAPJCoProps.jar \*.PROPERTIES.This compresses your properties file into a .jar file. For example,
SAPJCoProps.jar.
-
-
Upload the custom JAR file to an account by using the Manage Account Libraries page (Setup > Account Libraries).
To upload files, you must have the Build Read and Write Access privilege and the Developer privilege. Typically, an administrator uploads the files for an account. Each account has access to 100 MB of space for uploaded files.
-
Create a Custom Libary component. Select General in the Custom Library Type drop-down list, and add the JAR file to the Custom Library component.
-
Click View Deployments.
-
Attach the environments that you want to deploy to. Do not deploy multiple files with the same name to a single environment.
-
Deploy the Custom Library Component.
The JAR file is created under the [AtomRoot]/userlib folder. The connector can load the parameters from the configuration files in the JAR as a configuration resource.
-
Restart the basic runtime.
If you use a runtime cluster and you have enabled forked execution for the runtime cluster, you do not have to restart the runtime cluster.
-
On the Build page, create or open the SAP connection.
-
Enter the name of the properties file in Additional Connection Settings. The format must match exactly.
-
Save the connection.