Examples of ConversationalService


Examples of org.apache.tuscany.sca.itest.conversational.ConversationalService

        calls.append("runConversationCheckUserDefinedConversationId,");
        ServiceReference<ConversationalService> serviceReference = componentContext.getServiceReference(ConversationalService.class,
                                                                                                        "conversationalService");
        serviceReference.setConversationID("MyConversation2");
       
        ConversationalService callableReference = serviceReference.getService();
       
        callableReference.initializeCount(1);
        callableReference.incrementCount();
        clientCount = callableReference.retrieveCount();
        return callableReference.endConversation();
             
    }     
View Full Code Here

Examples of org.apache.tuscany.sca.itest.conversational.ConversationalService

    }
    public int runConversationHavingPassedReference(){
        calls.append("runConversationHavingPassedReference,");
        ServiceReference<ConversationalService> serviceReference = componentContext.getServiceReference(ConversationalService.class,
                                                                                                        "conversationalService");      
        ConversationalService callableReference = serviceReference.getService();
       
        callableReference.initializeCount(1);
        callableReference.incrementCount();
        conversationalReferenceClient.incrementCount(serviceReference);
        clientCount = callableReference.retrieveCount();
        callableReference.endConversation();
       
        // serviceReference.getConversation().end();
       
        return clientCount;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.itest.conversational.ConversationalService

        calls.append("runConversationCallingEndedConversationCheckConversationId,");
        ServiceReference<ConversationalService> serviceReference = componentContext.getServiceReference(ConversationalService.class,
                                                                                                        "conversationalService");
        serviceReference.setConversationID("MyConversation3");
       
        ConversationalService callableReference = serviceReference.getService();
       
        callableReference.initializeCount(1);
        callableReference.incrementCount();
        clientCount = callableReference.retrieveCount();
        callableReference.endConversation();
       
        if (serviceReference.getConversation() ==null ) {
            return null;
        } else {
            return serviceReference.getConversation().getConversationID().toString();
View Full Code Here

Examples of org.apache.tuscany.sca.itest.conversational.ConversationalService

        calls.append("runConversationCallingEndedConversationCallbackCheckConversationId,");
        ServiceReference<ConversationalService> serviceReference = componentContext.getServiceReference(ConversationalService.class,
                                                                                                        "conversationalService");
        serviceReference.setConversationID("MyConversation3");
       
        ConversationalService callableReference = serviceReference.getService();
       
        callableReference.initializeCount(1);
        callableReference.incrementCount();
        clientCount = callableReference.retrieveCount();
        callableReference.endConversationCallback();
       
        if (serviceReference.getConversation() ==null ) {
            return null;
        } else {
            return serviceReference.getConversation().getConversationID().toString();
View Full Code Here

Examples of org.apache.tuscany.sca.itest.conversational.ConversationalService

    }
    public int runConversationFromServiceReference(){
        calls.append("runConversationFromServiceReference,");
        ServiceReference<ConversationalService> serviceReference = componentContext.getServiceReference(ConversationalService.class,
                                                                                                        "conversationalService");      
        ConversationalService callableReference = serviceReference.getService();
       
        callableReference.initializeCount(1);
        callableReference.incrementCount();
        clientCount = callableReference.retrieveCount();
        callableReference.endConversation();
       
        // serviceReference.getConversation().end();
       
        return clientCount;
    }  
View Full Code Here

Examples of org.apache.tuscany.sca.itest.conversational.ConversationalService

        calls.append("runConversationWithUserDefinedConversationId,");
        ServiceReference<ConversationalService> serviceReference = componentContext.getServiceReference(ConversationalService.class,
                                                                                                        "conversationalService");
        serviceReference.setConversationID("MyConversation1");
       
        ConversationalService callableReference = serviceReference.getService();
       
        callableReference.initializeCount(1);
        callableReference.incrementCount();
        clientCount = callableReference.retrieveCount();
        callableReference.endConversation();
       
        // serviceReference.getConversation().end();
       
        return clientCount;
    }   
View Full Code Here

Examples of org.apache.tuscany.sca.itest.conversational.ConversationalService

        calls.append("runConversationCheckUserDefinedConversationId,");
        ServiceReference<ConversationalService> serviceReference = componentContext.getServiceReference(ConversationalService.class,
                                                                                                        "conversationalService");
        serviceReference.setConversationID("MyConversation2");
       
        ConversationalService callableReference = serviceReference.getService();
       
        callableReference.initializeCount(1);
        callableReference.incrementCount();
        clientCount = callableReference.retrieveCount();
       
        String clientConversationId = serviceReference.getConversationID().toString();
        String serverConfersationId = callableReference.endConversation();
       
        if (clientConversationId.equals("MyConversation2") &&
            serverConfersationId.equals("MyConversation2") ) {
            return clientConversationId;
        } else {
View Full Code Here

Examples of org.apache.tuscany.sca.itest.conversational.ConversationalService

   
    public int runConversationHavingPassedReference(){
        calls.append("runConversationHavingPassedReference,");
        ServiceReference<ConversationalService> serviceReference = componentContext.getServiceReference(ConversationalService.class,
                                                                                                        "conversationalService");      
        ConversationalService callableReference = serviceReference.getService();
       
        callableReference.initializeCount(1);
        callableReference.incrementCount();
        conversationalReferenceClient.incrementCount(serviceReference);
        clientCount = callableReference.retrieveCount();
        callableReference.endConversation();
       
        serviceReference.getConversation().end();
       
        return clientCount;
   
View Full Code Here

Examples of org.apache.tuscany.sca.itest.conversational.ConversationalService

        calls.append("runConversationCallingEndedConversationCheckConversationId,");
        ServiceReference<ConversationalService> serviceReference = componentContext.getServiceReference(ConversationalService.class,
                                                                                                        "conversationalService");
        serviceReference.setConversationID("MyConversation3");
       
        ConversationalService callableReference = serviceReference.getService();
       
        callableReference.initializeCount(1);
        callableReference.incrementCount();
        clientCount = callableReference.retrieveCount();
        callableReference.endConversation();
       
        if (serviceReference.getConversation() ==null ) {
            return null;
        } else {
            return serviceReference.getConversation().getConversationID().toString();
View Full Code Here

Examples of org.apache.tuscany.sca.itest.conversational.ConversationalService

        calls.append("runConversationCallingEndedConversationCallbackCheckConversationId,");
        ServiceReference<ConversationalService> serviceReference = componentContext.getServiceReference(ConversationalService.class,
                                                                                                        "conversationalService");
        serviceReference.setConversationID("MyConversation3");
       
        ConversationalService callableReference = serviceReference.getService();
       
        callableReference.initializeCount(1);
        callableReference.incrementCount();
        clientCount = callableReference.retrieveCount();
        callableReference.endConversationCallback();
       
        if (serviceReference.getConversation() ==null ) {
            return null;
        } else {
            return serviceReference.getConversation().getConversationID().toString();
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.