Package org.geoserver.cluster.client

Examples of org.geoserver.cluster.client.JMSContainer


            @Override
            protected void onSubmit(AjaxRequestTarget target,
                    org.apache.wicket.markup.html.form.Form<?> form) {
                // the container to use
                final JMSContainer c = getJMSContainer();
                if (c.isRunning()) {
                    fp.info("Disconnecting...");
                    if (c.disconnect()) {
                        fp.info("Succesfully un-registered from the destination topic");
                        fp.warn("You will (probably) loose next incoming events from other instances!!! (depending on how you have configured the broker)");
                        connectionInfo.getModel().setObject(
                                ConnectionConfigurationStatus.disabled.toString());
                    } else {
                        fp.error("Disconnection error!");
                        connectionInfo.getModel().setObject(
                                ConnectionConfigurationStatus.enabled.toString());
                    }
                } else {
                    fp.info("Connecting...");
                    if (c.connect()) {
                        fp.info("Now GeoServer is registered with the destination");
                        connectionInfo.getModel().setObject(
                                ConnectionConfigurationStatus.enabled.toString());
                    } else {
                        fp.error("Connection error!");
View Full Code Here

TOP

Related Classes of org.geoserver.cluster.client.JMSContainer

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.