uCosminexus Application Server, Web Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

2.14.2 Setting the permissions for generating user threads

To generate threads that the user explicitly generates in a program (user threads), permissions must be granted to the target servlet and JSP to generate the thread. This subsection describes the permission settings for generating the user threads.

To generate the user threads, confirm that the following coding exist in the server.policy. This definition grants the permission to generate the user threads.

 
permission java.lang.RuntimePermission "modifyThread";
permission java.lang.RuntimePermission "modifyThreadGroup";
 

Use the Smart Composer functionality commands to specify server.policy after the system is built. The coding example of the server.policy file is as follows:

...
//
// Grant access permissions to JSP/Servlet
//
grant codeBase "file: ${ejbserver.http.root}/web/${ejbserver.serverName}/-" {
permission java.lang.RuntimePermission "loadLibrary.*";
permission java.lang.RuntimePermission "queuePrintJob";
permission java.lang.RuntimePermission "modifyThread";
permission java.lang.RuntimePermission "modifyThreadGroup";
permission java.net.SocketPermission "*", "connect";
permission java.io.FilePermission "<<ALL FILES>>", "read, write";
permission java.util.PropertyPermission "*", "read";
permission javax.security.auth.AuthPermission "getSubject";
permission javax.security.auth.AuthPermission "createLoginContext.*";
};
...