ServletContext state replication in a Weblogic cluster

I know that a Weblogic cluster replicates session state between cluster nodes (in accordance with the replication policy), but as far as I understand, it does not replicate the state of the ServletContext (application area).

Is there any configuration in weblogic to do this?

I have a list of messages (which are set by the system administrator) in the application area, and the application shows them to users.

Everything was fine before clustering application servers, but after that there are some problems. Messages that are updated by the administrator are not displayed to all users, and I believe that messages are simply installed on the same node cluster.

I also keep track of the list of online users in the application (I update the list when I log in and log out) and save the list in the application area. How to save a list in a cluster?

+4
source share
1 answer

Whether messages should be saved in the application area. Because it’s better to keep them in session. But it looks like your functionality requires it. Tell me that you are using Coherence in your application if below works:

Set the parameter below for weblogic

ServletContext Cluster Coherences

true, false, , ServletContext. true, ServletContext .

, false, , Servlet , ServletContext JVM .

. http://docs.oracle.com/cd/E13924_01/coh.340/e14408/appparams.htm

+1

All Articles