-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gregory,
On 2/16/12 10:55 AM, Gregory Werner wrote: > In this case it is a test environment. We are trying to emulate > two distinct physical servers/load-balancing (which is the real > case) on a single physical machine with one Tomcat instance. > Looking at the logs we can see some requests going to A and some > going to B so it is load balancing, but in the end I am only > placing a single war file and starting a single tomcat instance. So, you have a single Tomcat instance with a single webapp deployed, but your load balancer has two separate connections to the single instance? What are you using for your load-balancer (it doesn't matter, I'm just curious). >> Remember that it's not magic replication: Tomcat doesn't know >> when you modify the object itself. I suspect that if you modify >> the object itself (say, by adding elements to the cache) you'll >> have to do this: >> >> context.setAttribute("userCache", userCache); > > I do, that would be my next line. I just stopped there because > the userCache I retrieve from the context is null so I get a > NullPointerException crashing things before I get an opportunity to > put it back in the cache. Gotcha. So, when are you actually putting a UserCache *into* the servlet context? I'm wondering if you can't find anything in the servlet context because you've never put anything there :) - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk89K7YACgkQ9CaO5/Lv0PC2KgCgpJQQ/xxpcz2rQPY/Q3x98myB AO8AoIGshggKxO0op7ps4VbnroADEVw7 =KJti -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org