Skip to content

Instantly share code, notes, and snippets.

@LIttleAncientForestKami
Created February 14, 2018 09:44
Show Gist options
  • Save LIttleAncientForestKami/525c9b6ae137e9e32458643504a1a4d7 to your computer and use it in GitHub Desktop.
Save LIttleAncientForestKami/525c9b6ae137e9e32458643504a1a4d7 to your computer and use it in GitHub Desktop.
Hazelcast training
<?xml version="1.0" encoding="UTF-8"?>
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.9.xsd"
xmlns="http://www.hazelcast.com/schema/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<network>
<join>
<!-- For trainings everyone should create his/her own cluster, therefore
multicast is disabled and other nodes are only searched for on localhost -->
<multicast enabled="false"/>
<tcp-ip enabled="true">
<interface>127.0.0.1</interface>
</tcp-ip>
</join>
</network>
</hazelcast>
package com.hazelcast;
public class Main {
public static void main(String[] args) {
// Add necessary code to start up a Hazelcast instance and
// run the application multiple times to cluster them up
}
}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.hazelcast</groupId>
<artifactId>lab1</artifactId>
<version>1.0</version>
<parent>
<artifactId>essentials-training-parent</artifactId>
<groupId>com.hazelcast</groupId>
<version>1.0</version>
</parent>
<dependencies>
<!-- Add the Hazelcast dependency -->
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment