Scott Brickner wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Implement the Singleton pattern for it. A static method in the class > that returns an instance cached in a static variable. For an example, > see any of the Turbine/Fulcrum service classes.
Yep. That's what I mean to try out. > > Though George's suggestion of using JCS is probably even better. It's > designed to do pretty much exactly what you're doing. > I have just taken a brief look at the JCS documentation. I don't think it is the designed for what I am trying to do. I would rather not have my two webapps communicating via TCP or RMI (and if I got the info from JCS right, that's what would have to be done), when they are actually running in the same JVM. JCS seems like a good choice, when there is really a need to cache across multiple hosts, but that is not the case here. The only reason, why I could imagine going for JCS now, would be scalability. Edmund -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
