Ensuring that remote EJB client requests stick to the same server instance as the initial context. (Doc ID 1080300.1)

Last updated on SEPTEMBER 16, 2016

Applies to:

Oracle WebLogic Server - Version 9.2 to 10.3.2
Oracle WebLogic Server - Version 12.1.2.0.0 to 12.1.2.0.0 [Release 12c]
Information in this document applies to any platform.
***Checked for relevance on 19-Jan-2013***

Goal

You may find that a remote home interface sometimes points to one server instance or another, but not necessarily to the server instance that the EJB client connected to. Since load balancing within a cluster is often desirable to prevent overloading a server, this behavior is how the EJB client works by default.  Yet, there may be a reason for the EJB client to always use the EJB remote interface that is running in the same server instance that the client connected to.  For example, maybe there is local content on the managed server instance that the client wants.

You will observe two scenarios trying to configure the EJB client to work the way described above. One scenario is that calls to managed servers say MS1 and MS2 always go to the EJB in either MS1 or MS2. The other scenario is that calls alternate between one and the other EJB. In other words, load balancing is taking place.

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