Application Developers writing distributed applications should be aware that since the container may run in more than one Java virtual machine, the developer cannot depend on static variables for storing an application state. They should store such states using an enterprise bean or a database.
Above is from servlet spec SRV.7.7.2 Distributed Environments.
I guess they are referring to clustering. But practically, are there many containers that are made to run on more than 1 VM ?
Any way if this is the case then the usage of static variables for storing an application state is not only harmful for distribute applications but for also applications that are not distributed, isn't it?