Last active
October 24, 2019 04:55
-
-
Save ohumbel/9d03d42f22390b8c4e5c56f1a016c9b2 to your computer and use it in GitHub Desktop.
JGroups connect to default channel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package st.extreme; | |
import org.jgroups.JChannel; | |
public class JGroups { | |
public static void main(String[] args) throws Exception { | |
try (JChannel channel = new JChannel()) { | |
channel.connect("testChannel"); | |
System.out.println("Connected to a default test channel"); | |
channel.disconnect(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compile with
and then execute it on Windows (runs happily on Linux):
Tested with AdoptOpenJDK 8: