Skip to content

Server Configuration Example

Markus Sabadello edited this page Sep 4, 2013 · 4 revisions

The following configuration sets up an XDI endpoint backed by Redis at the relative path /graph:

<!-- MESSAGING TARGET at /graph -->
<!-- MessagingTarget: GraphMessagingTarget backed by a RedisGraph -->

<bean id="graphfactory1" class="xdi2.core.impl.keyvalue.redis.RedisKeyValueGraphFactory">
	<property name="host" value="localhost" />
</bean>

<bean id="graph1" factory-bean="graphfactory1" factory-method="openGraph" />

<bean name="/graph" class="xdi2.messaging.target.impl.graph.GraphMessagingTarget">
	<property name="graph" ref="graph1" />
</bean>
Clone this wiki locally