We help IT Professionals succeed at work.

SERVLET CONTEXT IN WEBLOGIC CLUSTERS

cjtraman
cjtraman asked
on
Hi all,
I have 2 weblogic managed servers s1 and s2.both are clustered
I have put certain value in servlet context when s1 and s2 starts up.
assume that i put object a when s1 starts up and if i put the object a again when s2 starts up what actually happens internally.if i bring donw the server s2 whether server s1 actually be able to get that object.Please help me..its urgent
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016
Commented:
If the clustering is implemented properly, the context will be transparent and you shouldn't need to concern yourself with it

Commented:
As far as I know only session objects get replicated in a cluster (assuming, of course, that clustering is configured properly and the app is configured to utilize it).  So content in the servlet context would not get replicated if you change it on the fly.  The servlet context is really used to initialize data for use by servlets.  You really shouldn't be modifying data in the servlet context, only utilizing it.

Anything you want to get replicated should go in the session.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.