Examples of ConversationContext


Examples of org.apache.webbeans.context.ConversationContext

                    //Throw Busy exception
                    throw new BusyConversationException("Propogated conversation with cid=" + cid + " is used by other request. It creates a new transient conversation");
                }
                else
                {
                    ConversationContext conversationContext = conversationManager.getConversationContext(conversation);
                    ContextFactory.initConversationContext(conversationContext);
                }
            }
        }
    }
View Full Code Here

Examples of org.jboss.errai.cdi.client.api.ConversationContext

    public String generateDecorator(InjectionPoint<ConversationContext> injectionPoint) {
        final InjectionContext ctx = injectionPoint.getInjectionContext();

        final JField field = injectionPoint.getField();
        final ConversationContext context = field.getAnnotation(ConversationContext.class);

        String varName = injectionPoint.getInjector().getVarName();

        String expression = varName + "." +field.getName() +
                " = org.jboss.errai.cdi.client.api.CDI.createConversation(\""+context.value()+"\");";
               
        return expression;
    }
View Full Code Here

Examples of org.jboss.weld.context.ConversationContext

      else
      {
         cid = request.getParameter("cid");
      }

      ConversationContext conversationContext = instance().select(HttpConversationContext.class).get();
      if (!conversationContext.isActive())
         conversationContext.activate(cid);
      Conversation conversation = conversationContext.getCurrentConversation();

      // handle propagation of existing long running converstaions to new
      // targets
      if (!conversation.isTransient())
      {
View Full Code Here

Examples of org.jboss.weld.context.ConversationContext

   @Override
   public void detach()
   {
      super.detach();
      ConversationContext conversationContext = instance().select(HttpConversationContext.class).get();
      try
      {
         conversationContext.invalidate();
      }
      catch (Exception e)
      {
      }
      try
      {
         conversationContext.deactivate();
      }
      catch (Exception e)
      {
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.