I have set up JBoss to scan for deployments in a directory in addition to deploy/:
In my apps I specify the need to use scoped class loading:
However when I boot JBoss app1 loads all the classes and when app2 loads it finds shared instances of the classes (i.e. shares singletons). When I move app1 and app2 into the deploy dir (standard deployment location) class loading works as expected. What do I need to do to get apps placed in fs-deploy to behave like deploy?
I am using JBoss-eap-4.2.0
I believe I discovered what was happening. The server that I was debugging on was missing the trailing / after the directory name so the entire directory was being treated as a deployment instead of as a dir of sub deployments.