Skip to content

Instantly share code, notes, and snippets.

View tristantarrant's full-sized avatar
🏠
Working from home

Tristan Tarrant tristantarrant

🏠
Working from home
  • IBM
  • Italy
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.3 http://www.infinispan.org/schemas/infinispan-config-5.3.xsd"
xmlns="urn:infinispan:config:5.3">
<!-- *************************** -->
<!-- System-wide global settings -->
<!-- *************************** -->
<global>
<shutdown hookBehavior="DEFAULT" />
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository/>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<proxies/>
<profiles>
@tristantarrant
tristantarrant / Client.java
Last active December 17, 2015 11:08
An Infinispan Hot Rod client using SSL.
import org.infinispan.client.hotrod.RemoteCache;
import org.infinispan.client.hotrod.RemoteCacheManager;
import org.infinispan.client.hotrod.configuration.ConfigurationBuilder;
public class Client {
public static void main(String[] args) {
ClassLoader tccl = Thread.currentThread().getContextClassLoader();
ConfigurationBuilder builder = new ConfigurationBuilder();
builder
@tristantarrant
tristantarrant / settings.xml
Last active December 16, 2015 19:49
Maven settings.xml snippet for adding the Early Access Red Hat Enterprise Maven repository.
<!-- Include early access of application server and other products -->
<profile>
<id>redhat-earlyaccess-repository</id>
<repositories>
<repository>
<id>redhat-earlyaccess-repository-group</id>
<name>Red Hat early access repository</name>
<url>http://maven.repository.redhat.com/earlyaccess/all/</url>
<layout>default</layout>
<releases>
<dependencies>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-core</artifactId>
<version>5.2.0.CR2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
Manifest-Version: 1.0
Dependencies: org.infinispan:5.2 services
@tristantarrant
tristantarrant / gist:3899553
Created October 16, 2012 14:20
Infinispan RHQ plugin descriptor
<?xml version="1.0"?>
<plugin name="Infinispan"
displayName="InfinispanPlugin"
description="Supports management and monitoring of Infinispan"
package="org.infinispan.rhq"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:xmlns:rhq-plugin"
xmlns:c="urn:xmlns:rhq-configuration">
<depends plugin="JMX" useClasses="true"/>
@tristantarrant
tristantarrant / gist:3531913
Created August 30, 2012 16:09
Infinispan 5.2 JDBC cache loader XML configuration
<loaders>
<stringKeyedJdbcStore xmlns="urn:infinispan:config:jdbc:5.2"
fetchPersistentState="false" ignoreModifications="false"
purgeOnStartup="false"
connectionFactoryClass="org.infinispan.loaders.jdbc.connectionfactory.PooledConnectionFactory"
connectionUrl="jdbc:h2:mem:infinispan_binary_based;DB_CLOSE_DELAY=-1"
username="sa" driverClass="org.h2.Driver">
<stringKeyedTable dropOnExit="true" createOnStart="true"
prefix="ISPN_STRING_TABLE">
<idColumn name="ID_COLUMN" type="VARCHAR(255)" />
@tristantarrant
tristantarrant / gist:3531890
Created August 30, 2012 16:07
Infinispan 5.1 JDBC cache loader XML configuration
<loaders>
<loader class="org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore"
fetchPersistentState="false" ignoreModifications="false"
purgeOnStartup="false">
<properties>
<property name="stringsTableNamePrefix" value="ISPN_STRING_TABLE"/>
<property name="idColumnName" value="ID_COLUMN"/>
<property name="dataColumnName" value="DATA_COLUMN"/>
<property name="timestampColumnName" value="TIMESTAMP_COLUMN"/>
<property name="timestampColumnType" value="BIGINT"/>
@tristantarrant
tristantarrant / datagrid.xml
Created April 12, 2012 15:18
datagrid config assembly
<?xml version='1.0' encoding='UTF-8'?>
<!-- See src/resources/configuration/ReadMe.txt for how the configuration assembly works -->
<config default-supplement="default">
<extension-module>com.jboss.datagrid</extension-module>
<subsystem xmlns="urn:jboss:domain:datagrid:1.0">
<hotrod-connector socket-binding="hotrod" cache-container="@@default-cache-container@@">
<topology-state-transfer lazy-retrieval="false" lock-timeout="1000" replication-timeout="5000" />
</hotrod-connector>
<memcached-connector socket-binding="memcached" cache-container="@@default-cache-container@@" />
<rest-connector virtual-server="default-host" cache-container="@@default-cache-container@@" />