Package org.osoa.sca

Examples of org.osoa.sca.ConversationEndedException


        // If an existing intsance is found return it only if its not expired and update its
        // last referenced time.
        else
        {
          if (anInstanceWrapper.isExpired())
             throw new ConversationEndedException();
          anInstanceWrapper.updateLastReferencedTime();
        }
       
        return anInstanceWrapper.getInstanceWrapper();         
                     
View Full Code Here


                conversation = conversationManager.startConversation(conversationID);
                conversation.initializeConversationAttributes(wire.getTarget().getComponent());
            } else if (conversation.conversationalAttributesInitialized() == false) {
                conversation.initializeConversationAttributes(wire.getTarget().getComponent());
            } else if (conversation.isExpired()){
              throw new ConversationEndedException("Conversation has expired.");
            }
           
            conversation.updateLastReferencedTime();
   
            parameters.setConversationID(conversation.getConversationID());
View Full Code Here

        }
        // If an existing instance is found return it only if its not expired and update its
        // last referenced time.
        else {
            if (anInstanceWrapper.isExpired()) {              
                throw new ConversationEndedException();
            }
            anInstanceWrapper.updateLastReferencedTime();
        }

        return anInstanceWrapper.getInstanceWrapper(contextId);
View Full Code Here

        }
        // If an existing instance is found return it only if its not expired and update its
        // last referenced time.
        else {
            if (anInstanceWrapper.isExpired())
                throw new ConversationEndedException();
            anInstanceWrapper.updateLastReferencedTime();
        }

        return anInstanceWrapper.getInstanceWrapper(contextId);
View Full Code Here

            // connect the conversation to the CallableReference so it can be retrieve in the future
            if (callableReference != null) {
                ((CallableReferenceImpl)callableReference).attachConversation(conversation);
            }
        } else if (conversation.isExpired()) {
            throw new ConversationEndedException("Conversation " + conversation.getConversationID() + " has expired.");
        }

        // if this is a local wire then schedule conversation timeouts based on the timeout
        // parameters from the service implementation. If this isn't a local wire then
        // the RuntimeWireInvoker will take care of this
View Full Code Here

            // connect the conversation to the CallableReference so it can be retrieve in the future
            if (callableReference != null) {
                ((CallableReferenceImpl)callableReference).attachConversation(conversation);
            }
        } else if (conversation.isExpired()) {
            throw new ConversationEndedException("Conversation " + conversation.getConversationID() + " has expired.");
        }

        // if this is a local wire then schedule conversation timeouts based on the timeout
        // parameters from the service implementation. If this isn't a local wire then
        // the RuntimeWireInvoker will take care of this
View Full Code Here

TOP

Related Classes of org.osoa.sca.ConversationEndedException

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.