Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Part 1 The Basic for Developing Application> Chapter 2 Environment Setup> 2.4 Setting Up Environment Files

2.4.2 Specifying a Separate API Environment File for each Application to be Started

This section explains how to specify a separate API environment file for each application to be started.

Copy and edit the following sample API environment file.

Shunsaku installation folder\Shunsaku\etc\api\api.cfg-sample

/etc/opt/FJSVshnsk/etc/api/api.cfg-sample

If a separate API environment file is specified for each application, the files do not need to be stored in the same folder as the sample. Specify the settings as described below, depending on the type of API being used.

mark2Java API

Specify the absolute path of the API environment file in the "com.fujitsu.shunsaku.api.configfile" system property using the "D" option when the application is executed.

Example

To specify "D:\temp\api\api.cfg" as the API environment file for an application called "app"
Java -Dcom.fujitsu.shunsaku.api.configfile=D:\temp\api\api.cfg app

Example

To specify "/tmp/api/api.cfg" as the API environment file for an application called "app"
Java -Dcom.fujitsu.shunsaku.api.configfile=/tmp/api/api.cfg app

mark2.NET API

Specify the absolute path of the API environment file in the SHUN_API_CONFIG environment variable.

Example

To specify "D:\temp\api\api.cfg" as the API environment file to be used
SET SHUN_API_CONFIG=D:\temp\api\api.cfg

mark2C API

Specify the absolute path of the API environment file in the SHUN_API_CONFIG environment variable.

Example

To specify "D:\temp\api\api.cfg" as the API environment file to be used
SET SHUN_API_CONFIG=D:\temp\api\api.cfg

Example

To specify "/tmp/api/api.cfg" as the API environment file to be used
For bash, Bourne and Korn shells:
SHUN_API_CONFIG=/tmp/api/api.cfg; export SHUN_API_CONFIG
FOR C shell:
setenv SHUN_API_CONFIG /tmp/api/api.cfg

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006