Forums Register Login

ServletContext will be replicated in case Session Replication or not

+Pie Number of slices to send: Send
ServletContext will be replicated in case Session Replication or not
+Pie Number of slices to send: Send
when u deploy ur application in clustering
+Pie Number of slices to send: Send
if i set like this servlet

getServletContext.setAttribute("example",example);

session.setAttribute("example",example);(in case of sessions as u said no problem)

but how this example object set in servletContext will be replicated while doing clustering?
+Pie Number of slices to send: Send
ServletContext is not replicated. It is the HTTPSession which is replicated when I talk of Containers that support clustering.
+Pie Number of slices to send: Send
 

Originally posted by Pradip Bhat:
ServletContext is not replicated. It is the HTTPSession which is replicated when I talk of Containers that support clustering.



depend on the vendors whether ServletContext will be replicated or not.

in case of orionserver if u define <repicate-servlet-context="true"> in orion-web.xml then ServletContext will replicated.that class which is using ServletContext should be implemented serializable class.

in case of oracleappserver


orion-web.xml if u define <cluster-config> then ServletContext and session will be replicated .
Get me the mayor's office! I need to tell him about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1240 times.
Similar Threads
Session Replication Failure
Is ServletContext replicated in Session replication?
WebLogic 9.2 clustering problem
Question regarding Session Migration
Session Replication
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:03:13.