Examples of AsyncPort


Examples of org.apache.axis2.jaxws.sample.parallelasync.server.AsyncPort

        private void receiveResponse() throws Exception {
            String title = myClassName + " : ReceiveClientResponse : ";
            String request1 = monitor.request;
           
            AsyncService service = new AsyncService();
            AsyncPort port = getPort(service);

            // wait a bit to make sure that the server has the request;
            Thread.sleep(1000);
           
            // check the waiting request
            TestLogger.logger.debug(title + " port.isAsleep(" + request1 + ") #1 being submitted....");
            String asleepWithCallback1 = port.isAsleep(request1);
            TestLogger.logger.debug(
                    title + " port.isAsleep(" + request1 + ") #1 = [" + asleepWithCallback1 + "]");
            assertEquals(request1, asleepWithCallback1);
           
            // wakeup the waiting request
            TestLogger.logger.debug(title + " port.wakeUp(request1) #1 being submitted....");
            String wake1 = port.wakeUp(request1);
            monitor.receiverThreadRequestReceivedTime = System.currentTimeMillis();
            assertEquals(request1, wake1);
            TestLogger.logger.debug(title + " port.wakeUp(" + request1 + ") #1 = [" + wake1 + "]");

            // wait a bit..
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.