Examples of ConversationalService


Examples of conversation.service.ConversationalService

    }  
    public int runConversationWithUserDefinedConversationId(){
        calls.append("runConversationWithUserDefinedConversationId,");
        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 conversation.service.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 conversation.service.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 conversation.service.ConversationalService

@Service(interfaces={ConversationalReferenceClient.class})
@AllowsPassByReference
public class ConversationalReferenceClientImpl implements ConversationalReferenceClient{
  
    public void incrementCount(CallableReference<ConversationalService> conversationalService){
        ConversationalService callableReference = conversationalService.getService();
       
        callableReference.incrementCount();       
    }
View Full Code Here

Examples of conversation.service.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 conversation.service.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 conversation.service.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 conversation.service.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.callablerefconversational.ConversationalService

        final Object origConvID = acomponent.getConversationID();
        Assert.assertNotNull(origConvID);
        final ServiceReference<ConversationalService> ref = acomponent.createSelfRef();
        Assert.assertNotNull(ref);

        final ConversationalService resolvedRef = ref.getService();
        Assert.assertNotNull(resolvedRef);
        final Object newConvID = resolvedRef.getConversationID();
        Assert.assertNotNull(newConvID);

        Assert.assertEquals(origConvID, newConvID);
    }
View Full Code Here

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

        acomponent.setUserData(userData);

        final ServiceReference<ConversationalService> ref = acomponent.createSelfRef();
        Assert.assertNotNull(ref);

        final ConversationalService resolvedRef = ref.getService();
        Assert.assertNotNull(resolvedRef);
        final String newUserData = resolvedRef.getUserData();
        Assert.assertNotNull(newUserData);

        Assert.assertEquals(userData, newUserData);
    }
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.