Package com.sun.enterprise.ee.synchronization.http

Examples of com.sun.enterprise.ee.synchronization.http.HttpGroupRequestMediator


        // begin a transaction for the synchronization; it is a
        // single threaded transaction
        Transaction tx = txMgr.begin(1);

        boolean httpException             = false;
        HttpGroupRequestMediator httpGrm  = null;
        try {
            // execute synchronization using http
            String url = HttpUtils.getSynchronizationURL(_ctx, dpr);
            httpGrm = new HttpGroupRequestMediator(dpr, allReqs, tx, url);
            httpGrm.run();
        } catch (Exception e) {
            httpException = true;
        }

        // if web path based synchronization failed
        if (httpGrm.isException() || httpException) {

            _logger.log(Level.FINE,
                "Http based synchronization failed, trying jmx based impl..",
                httpGrm.getException());

            // re-try the synchronization request using jmx
            JmxGroupRequestMediator jmxGrm =
                    new JmxGroupRequestMediator(dpr, allReqs, tx);
            jmxGrm.run();
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ee.synchronization.http.HttpGroupRequestMediator

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.