Skip to content

Instantly share code, notes, and snippets.

@MikeN123
Created May 22, 2013 18:57
Show Gist options
  • Save MikeN123/5629994 to your computer and use it in GitHub Desktop.
Save MikeN123/5629994 to your computer and use it in GitHub Desktop.
Infinispan Spring context
<bean id="infinispan" class="mypackage.MySpringEmbeddedCacheManagerFactoryBean"
p:configurationFileLocation="classpath:infinispan-spring.xml"
p:clusterName="${cluster.name}"
p:transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport">
<property name="transportProperties">
<props>
<prop key="channelLookup">mypackage.JGroupsChannelLookupImpl</prop>
<prop key="lookupConfigurationFile">jgroups.xml</prop>
<prop key="jgroups.tcp.bind_addr">${cluster.bind_addr}</prop>
<prop key="jgroups.tcp.bind_port">${cluster.bind_port}</prop>
<prop key="jgroups.tcpping.initial_hosts">${cluster.initial_hosts}</prop>
<prop key="jgroups.fd_sock.bind_addr">${cluster.bind_addr}</prop>
<prop key="jgroups.fd_sock.start_port">${cluster.bind_port_fd}</prop>
</props>
</property>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment