Hi there,
I'm quite new to the Spring framework. I have a situation where I have a Spring application hosted in Tomcat. In the service layer I need a singleton which contains an in-memory lookup table. I will have web service (CXF) requests coming in which will need to access that lookup.
I know I can mark the bean as singleton, but will Tomcat start a different ApplicationContext to service each new request?
Can you guys recommend a different strategy for achieving something like this? The in-memory lookup will be a type of write-back cache, so I really need only one instance.
Thank you in advance for any assistance


Reply With Quote
