Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

shared/classes folder

Carlos Pereira

2003-10-14


I'm developing a set of applications which need to exchange objects and are to be deployed in different servers. During development, i use just one server, and put all the common packages under the <tomcat>/shared/classes folder.
All applications have their own memory space, so if i use an object (like a static class) in one application, it is different from the same class in another application. But, for classes under <tomcat>/shared/classes, the objects are the same! That is, classes are loaded into the same memory space.
Is this behavior correct? It doesn't seem logical...
If so, is there any way i can prevent this?

Best regards,
Carlos Pereira

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.