Skip to content

Instantly share code, notes, and snippets.

@umit
Created June 21, 2012 19:20
Show Gist options
  • Save umit/2967924 to your computer and use it in GitHub Desktop.
Save umit/2967924 to your computer and use it in GitHub Desktop.
applicationContext-Hazelcast.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:hz="http://www.hazelcast.com/schema/spring"
xsi:schemaLocation="http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.hazelcast.com/schema/spring
http://www.hazelcast.com/schema/spring/hazelcast-spring-2.0.xsd">
<hz:hazelcast id="instance">
<hz:config>
<hz:group name="dev" password="dev"/>
<hz:properties>
<hz:property name="hazelcast.merge.first.run.delay.seconds">5</hz:property>
<hz:property name="hazelcast.merge.next.run.delay.seconds">5</hz:property>
</hz:properties>
<hz:network port="5701" port-auto-increment="false">
<hz:join>
<hz:multicast enabled="true"/>
<hz:tcp-ip enabled="true">
<hz:interface>127.0.0.1:5700</hz:interface>
</hz:tcp-ip>
</hz:join>
<hz:interfaces enabled="true">
<hz:interface>127.0.0.1</hz:interface>
</hz:interfaces>
</hz:network>
</hz:config>
</hz:hazelcast>
<hz:map id="productMap" name="productMap" instance-ref="instance" />
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment