All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jgroups.tests.bla5 Maven / Gradle / Ivy

Go to download

This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up with different versions on classes on the class path).

There is a newer version: 32.0.0.Final
Show newest version
package org.jgroups.tests;

import org.jgroups.JChannel;
import org.jgroups.jmx.JmxConfigurator;
import org.jgroups.util.Util;

/**
 * @author Bela Ban
 * @since x.y
 */
public class bla5 {
    public static void main(String[] args) throws Exception {
        JChannel ch=new JChannel().name("A");
        ch.connect("cluster");
        JmxConfigurator.registerChannel(ch,Util.getMBeanServer(), "jgroups");


        Util.keyPress("enter to stop");

        JmxConfigurator.unregisterChannel(ch, Util.getMBeanServer(), "jgroups", ch.getClusterName());

        Util.close(ch);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy