I want to "cache" a rountrip to a database in an instance method of a
page class like this:

public FlowDataPageContent getFlowDataPageContent() {
        
        if (_pageContent == null)
        {
                _pageContent = getContentService().getFlowDataPageContent(/*
some data in an ASO */);
        }
        

        return _pageContent;
    }

content service is injected by Spring.

Am I going to get into threading/concurrency problems here?  Is there
a more elegant way to avoid multiple round trips to the database
accessed by my service?

Bill

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to