Package org.jboss.weld.context

Examples of org.jboss.weld.context.ManagedConversation


  }

  @Override
  public void deactivateContext() {
    final ConversationState conversationState = CURRENT_CONVERSATION_STATE.get();
    final ManagedConversation currentConversation = boundConversationContext.getCurrentConversation();
    if (!currentConversation.isTransient() && !conversationState.isLongRunning()) {
      startLongRunningConversation(conversationState, currentConversation);
    }
    else if (currentConversation.isTransient() && conversationState.isLongRunning()) {
      endLongRunningConversation(conversationState);
    }
    else if (currentConversation.getId() != null
            && !currentConversation.getId().equals(conversationState.getConversationId())) {
      LOGGER.warn("current conversation id: {} and registered: {}. There shouldn't be two activated conversations",
              currentConversation.getId(), conversationState.getConversationId());
    }
    boundConversationContext.deactivate();
    boundConversationContext.dissociate(CURRENT_BOUND_REQUEST.get());
    CURRENT_BOUND_REQUEST.remove();
    CURRENT_CONVERSATION_STATE.remove();
View Full Code Here

TOP

Related Classes of org.jboss.weld.context.ManagedConversation

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.