thijs
Jan 30th, 2005, 06:32 AM
I'm trying to deploy Spring applications in different web-app's in the same host.
When I put the spring jar's in a class-loader directly in the host the spring classes are shared between the webapp's. This has the effect that the hibernate sessionFactory instance is shared as well, wich causes all the web-apps to use the datasource of the last loaded web-app. Is this behaviour a bug?
If I give each web-app a separate class-loader the web-app's won't start because the classes in that class-loader aren't available yet at the time it starts loading and tries to start up the ApplicationContext.
Is there a way to work around this?
When I put the spring jar's in a class-loader directly in the host the spring classes are shared between the webapp's. This has the effect that the hibernate sessionFactory instance is shared as well, wich causes all the web-apps to use the datasource of the last loaded web-app. Is this behaviour a bug?
If I give each web-app a separate class-loader the web-app's won't start because the classes in that class-loader aren't available yet at the time it starts loading and tries to start up the ApplicationContext.
Is there a way to work around this?