Especially in multi-threaded in environments, the classloader is accessed way to often to convert the Criteria Query into SQL. In some containers like Tomcat we observed that the classloader is synchronized. This combination drastically degrades performance of our application servers.
which was closed without further information. The code in question:
A solution/workaround for this problem is necssary.