As I understand it, the same class deployed in different webapps (in the same instance of Jboss) should not see each other's static variables - as long as the webapps are loaded with different classloaders. So I deployed them as EARs and put
in the jboss-app.xml file inside each ear's /META-INF dir.
Unfortunately, this didn't solve the problem as the different webapps continue to set each other's static variables.
Thanks in advance.
The two ears should have distinct loader entries: