One caching solution for Java is http://www.opensymphony.com/oscache/ which should do the job quite nicely.
Another, of course, is to use memcached and any of the Java clients for it. This way you could clear the cache from AOLserver also if the content changes. Finally, a singleton with a Hashmap could do it, but access would need to be synchronized, which could well give performance issues. Hope that helps! Bas. On Tuesday, April 7, 2009 2:34am, "Janine Sisk" <[email protected]> said: > I have a really screwy setup and am looking for some advice. > > I have an AOLserver site running a not-very-recent version of OpenACS > with a custom CMS I did not write. It serves up a site written > entirely in Traditional Chinese. I also have a java servlet which > takes a page from that site and translates it into Simplified > Chinese. So URLs are like this: > > Traditional - http://big5.mysite.com/public/index > Simplified - http://gb.mysite.com/gate/gb/big5.mysite.com/public/index > > The latter goes to a Tomcat site which requests the specified page > from big5.mysite.com, translates it, and returns it. > > As you can imagine, this is not fast. I'm working on convincing the > client that what we really need to do is make a static HTML version of > the Simplified site, which gets updated when they update content, and > serve that directly. Ultimately I'm pretty sure that's what we'll end > up doing. But first I have a tech guy on their end who thinks caching > is the way to go, and I need to try that before they'll let me > implement my own solution. > > He thought I should just slap Apache in front of all this and use > mod_cache, but that was a dead end. Since Apache doesn't actually > serve any content in this scenario but merely hands off to Tomcat, > there is nothing for it to cache. > > I've done some googling on Tomcat and caching but there don't seem to > be any add-ons for it. They say it does some caching by default but > I'm not seeing it, maybe because I'm not using any JSPs. This is my > first foray into Java programming so it's all new to me. > > I know that some people use Squid as a caching proxy in front of > AOLserver, but I'm not sure if that would solve my problem or not. > > Any suggestions out there? > > thanks, > > janine > > --- > Janine Sisk > President/CEO of furfly, LLC > 503-693-6407 > > > -- > AOLserver - http://www.aolserver.com/ > > To Remove yourself from this list, simply send an email to > <[email protected]> with the > body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: > field > of your email blank. > -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[email protected]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
