WLS10.3.1 - User principal not propagated properly to an EJB.
(Doc ID 1267040.1)
Last updated on AUGUST 14, 2020
Applies to:Oracle WebLogic Server - Version 10.3.1 and later
Information in this document applies to any platform.
The credential used to call an EJB changes when the bean constructor is called due to JMX lookup in the constructor. Subsequent calls to the bean work without issue.
This occurred under the following scenario:
A web service method makes several calls to a stateless session bean within a single request. The WS makes the call with the credential '<NAME1>'.
In the EJB constructor, an MBeanServerConnection object is created with the following code:
The MBeanServerConnection object is used in the methods to check users, etc.
The credential that is passed to the JMXConnectorFactory is user 'weblogic'. (internal default name)
Since the webservice makes multiple calls to the EJB, additional calls to the EJB use the wrong name (weblogic), rather than the principal that was originally intended to be used (<NAME1>).
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document