Skip to content
peacekeeper edited this page May 19, 2012 · 29 revisions

Implementation of an XDI server capable of responding to messages from XDI clients.

How to run the standalone XDI server

cd server
mvn jetty:run

Then (with default configuration) XDI endpoints are available at:

http://localhost:8080/xdi/mem-graph/
http://localhost:8080/xdi/bdb-graph/
http://localhost:8080/xdi/file-graph/

Server configuration

An XDI server is backed by one or more XDI messaging targets, which in turn are typically backed by XDI graphs.

The XDI server can be configured with the file WEB-INF/applicationContext.xml, e.g.:

<?xml version="1.0" encoding="UTF-8" ?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">

<bean id="graphfactory1" class="xdi2.core.impl.memory.MemoryGraphFactory" />

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

<bean name="/mem-graph" class="xdi2.messaging.target.impl.graph.GraphMessagingTarget">
	<property name="graph" ref="graph1" />
</bean>

</beans>

The above configuration file sets up an XDI endpoint backed by an in-memory store at path /mem-graph

Clone this wiki locally