The scheduler service utilizes the asynchronous beans deferred start mechanism to propagate J2EE service context information to a task when it runs. The amount of service context information that is propagated is controlled by the Service Context settings on the WorkManager configuration object that schedulers reference. For example, security and internationalization service contexts can be enabled. See Using asynchronous beans for details on how to configure the Application Server to propagate these service contexts.
Java Authentication and Authorization Service Security context
If you intend to secure your application using the JAAS security context of the global security mechanism built into WebSphere Application Server, create each task with the correct credentials on the thread. Once each task has the correct credentials, you can disable and re-enable global security without causing any security problems. If you do not set the security context when the scheduler task is created and you later enable security in the target application, a security exception or error message might display, such as SECJ0053E. You might also see this error if two or more schedulers on different servers are accessing the same tables (a clustered or redundant scheduler) and the security settings are different.Security order of precedence
As previously noted, there are three ways of verifying that a task will run with the correct user credentials. In addition, each TaskInfo implementation may have its own way of supplying user information, which may override the standard mechanisms. If multiple methods are used, refer to the following lists to determine which security mechanism is going to be employed.
BeanTaskInfoRelated concepts
Enterprise bean component security
Asynchronous beans
Transactions and schedulers
Related tasks
Configuring Common Secure Interoperability Version 2 and Security Authentication
Service authentication protocols
Using asynchronous beans
Securing scheduler tasks
Related reference
Deprecated and removed features
Identity assertion