Package org.apache.axis2.context

Examples of org.apache.axis2.context.ConfigurationContext.terminate()


        System.out.println("Sending Event : \n" + payload.toString());
        serviceClient.fireAndForget(payload);
        System.out.println("Event sent to topic " + topic);
        Thread.sleep(1000);
        if (configContext != null) {
            configContext.terminate();
        }
    }
}
View Full Code Here


        } else {
            throw new Exception("Unexpected response : " + response);
        }
        Thread.sleep(1000);
        if (configContext != null) {
            configContext.terminate();
        }
    }
}
View Full Code Here

        while (!callback.isComplete()) {
            Thread.sleep(1000);
        }

        sender.cleanup();
        configConetxt.terminate();
    }

    class BetterAxisCallback implements AxisCallback {
        private boolean complete = false;
View Full Code Here

          System.exit(0);
                }
            }

            try {
                configContext.terminate();
            } catch (Exception ignore) {}

        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

            }
        }

        try {
            if (configContext != null) {
                configContext.terminate();
            }
            // the above statement was used on reccomendation by Chamikara as I remember, but
            // since using Axis2 1.3 - this causes some unexpected classloading issue on the
            // Axis2 server side - which cannot be described. This using the below as suggested
            // by Deepal
View Full Code Here

                            "Server was shutdown as the async response take too long to complete");
                }
            }
        }
        sender.cleanup();
        configContext.terminate();
        log.info("send the request");

    }

    public void testEchoXMLMultipleDuelASync() throws Exception {
View Full Code Here

                            "Server is shutdown as the Async response take too longs time");
                }
            }
        }
        sender.cleanup();
        configContext.terminate();
        log.info("send the request");
    }
}
View Full Code Here

        for (int i = 0; i < 5; i++) {
            OMElement result = sender.sendReceive(payload);
            TestingUtils.compareWithCreatedOMElement(result);
        }
        sender.cleanup();
        configContext.terminate();
    }

    public void testEchoXMLMultipleDuelSync() throws Exception {
        OMElement payload = TestingUtils.createDummyOMElement();
        Options options = new Options();
View Full Code Here

        for (int i = 0; i < 5; i++) {
            OMElement result = sender.sendReceive(payload);
            TestingUtils.compareWithCreatedOMElement(result);
        }
        sender.cleanup();
        configContext.terminate();
    }


}
View Full Code Here

        for (int i = 0; i < 5; i++) {
            OMElement result = sender.sendReceive(payload);
            TestingUtils.compareWithCreatedOMElement(result);
        }
        sender.cleanup();
        configContext.terminate();
    }


}
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.