Permissions to access the file system

Depending on the functions performed by your program, the CICS Transaction Gateway Java™ APIs might require access to the file system, for example to write trace files.

The following permission statement gives permission for the CICS® Transaction Gateway to access and create an ibm/ctg (on UNIX and Linux) or ibm\ctg (on Windows) subdirectory in the users' home directory:
permission java.io.FilePermission "${user.home}${file.separator}ibm
${file.separator}ctg${file.separator}-","read,write,delete";
The format of the permission might vary depending on the installation, and you can specify alternative locations, or none at all. CICS Transaction Gateway classes require access to the file system in the following cases:
For example, on Windows, you can specify the following permission to allow access to the directory c:\trace and all subdirectories:
permission java.io.FilePermission "c:\trace\-", 
                                  "read,write,delete";
On UNIX and Linux systems, you can specify the following permission to allow access to the directory /tmp/ibm and all subdirectories:
permission java.io.FilePermission "/tmp/ibm/", 
                                  "read,write,delete";

Information Information

Feedback


Timestamp icon Last updated: Tuesday, 19 November 2013


https://ut-ilnx-r4.hursley.ibm.com/tg_latest/help/topic/com.ibm.cics.tg.doc//progde/ccl99j2s.html