skip to main content
Getting Started : Using the Drivers : About the Product : J2EE Connector Architecture Resource Adapters : Security Permissions for Resource Adapters
  
Security Permissions for Resource Adapters
Each RAR file includes a deployment descriptor, which contains information about the resource adapter, including the permissions that must be granted to the resource adapters when they run with a Security Manager. The Security Manager is a class defined by the Java Security Architecture (part of the J2SE API).
Typically, when a Java program is run from the command line, the program is run without a Security Manager, meaning that the application has full access to the resources on the computer on which it is running. Optionally, you can specify a Security Manager using a command-line argument to the JVM. If a Security Manager is specified, the JVM checks with the Security Manager prior to allowing application access to system resources. If the application has permission to access the resource, the operation is allowed to proceed; otherwise, an exception is generated indicating that the application does not have the required permissions.
Permissions are granted to an application using a set of policy files. Typically, Security Managers are only used when running within an application server or when running an applet, but you can specify that a Security Manager be used when running any Java application.
The deployment descriptors for the resource adapters contain a single permission: modifyThreadGroup. This permission must be granted to the resource adapter and is required to create threads. Check with your system administrator to make sure that the resource adapter is granted the modifyThreadGroup permission.
Refer to Oracle documentation for more information about the Java Security Architecture.