Skip to content

Instantly share code, notes, and snippets.

@enesakar
Created April 5, 2012 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enesakar/2308666 to your computer and use it in GitHub Desktop.
Save enesakar/2308666 to your computer and use it in GitHub Desktop.
spring hazelcast context 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.0.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.hazelcast.com/schema/spring
http://www.hazelcast.com/schema/spring/hazelcast-spring-2.0.xsd
">
<bean class="com.springhazelcast.TestBean" name="springTestBean">
<property name="result" value="success"/>
</bean>
<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:join>
</hz:network>
</hz:config>
</hz:hazelcast>
<hz:map instance-ref="instance" id="usermap" name="user" />
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment