How To Use A Different Subject In Session Listener? (Doc ID 1356568.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version: 10.3 and later   [Release: and later ]
Information in this document applies to any platform.

Goal

When trying to get JDBC connection from session listener, the datasource has resource security policies configured on it, only allows certain users to access.

The problem is session listener’s running using the current authenticated user's subject, which doesn’t have a proper subject to access the datasource.

Is there a way to work around this?


Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms