I'm using JBoss 4.0.3sp1 and I have an application packed as an ear file (structure below).
I've recently realized, that when two users(sessions) access the same resources at the same time (servlets and ejbs), it is happens that they get mixed results. For example, user session A sends a request to the server at the same time as user session B. It is very probable that A will get B's response the the opposite.
My EAR's structure is the following:
|-support.jar (various utility classes)
|-hibernate.har (my hibernate files)
|-webapp.war (the web component of my application. Contains /lib)
I've read that my problem might be related to the variable "UseJBossWebLoader" defined in Tomcat's jboss-service.xml, which is set to "true" in my case. I've tried setting it to "false" - just in case that fixes my problem - but afterwards, I would get:
javax.ejb.EJBException: Unexpected Error
I've updated to JBoss 4.0.5 and switched to using isolated class-loading. For a while the problem seemed to have vanished, but now it appears it did not.
Is there something I am doing wrong? I don't think that the two separate requests receive the save response...