Last updated on MAY 24, 2017
Applies to:Oracle Weblogic Server - Version: 10.3.1
Information in this document applies to any platform.
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:
JMXConnector jmxConnector = JMXConnectorFactory.connect(jmxServiceURL, jmxConnectorProperties);
mbeanServerConnection = jmxConnector.getMBeanServerConnection();
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).
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms