Skip to content

Server Configuration Example

peacekeeper edited this page Nov 17, 2014 · 4 revisions

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

<!-- MESSAGING TARGET at /graph -->

<bean id="graphfactory1" class="xdi2.core.impl.json.mongodb.MongoDBJSONGraphFactory">
	<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