i...">

What does it mean that a web application should be "distributed"?

To be more specific, I study the sessions, and I read about the <distributable> in the deployment descriptor (for example ). The text contains

"... perhaps - for the sake of balancing the load of failure or both - mark the web application as redistributable if it is supported by your application server."

Can someone provide a little more information / context? If possible, I don’t need a complete reference on how the mechanism works (I’m studying the Web Components exam), enough to understand in the context of the sessions.

Thanks!

+4
source share
1 answer

Here are some useful lines

If an application runs in a cluster without being marked as redistributable, session changes will be performed on only one JVM. Therefore, when a user connects to one of the other JVMs, their session will not be recognized and a new session will be created. This can force them to log in again by installing the second session on a different JVM. When they switch between the two servers, other problems may arise.

+5
source

Source: https://habr.com/ru/post/1497564/


All Articles