Package org.springframework.webflow.core.collection

Examples of org.springframework.webflow.core.collection.SharedAttributeMap


    // re-bind the conversation container in the session
    // this is required to make session replication work correctly in
    // a clustered environment
    // we do this after releasing the lock since we're no longer
    // manipulating the contents of the conversation
    SharedAttributeMap sessionMap = ExternalContextHolder.getExternalContext().getSessionMap();
    synchronized (sessionMap.getMutex()) {
      sessionMap.put(container.getSessionKey(), container);
    }
  }
View Full Code Here


  /**
   * Obtain the conversation container from the session. Create a new empty container and add it to the session if no
   * existing container can be found.
   */
  private ConversationContainer getConversationContainer() {
    SharedAttributeMap sessionMap = ExternalContextHolder.getExternalContext().getSessionMap();
    synchronized (sessionMap.getMutex()) {
      ConversationContainer container = (ConversationContainer) sessionMap.get(sessionKey);
      if (container == null) {
        container = createConversationContainer();
        sessionMap.put(sessionKey, container);
      }
      return container;
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.core.collection.SharedAttributeMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.